# Turso 示例（C）

> Turso 示例（C）—— Turso 文档。
> Canonical HTML: https://tursodb.cn/zh-cn/docs/sdk/c/examples/
> Upstream Source (MIT): https://docs.turso.tech/sdk/c/examples
> Language: zh-CN

---
| 示例 | 描述 |
| - | - |
| [local](https://github.com/tursodatabase/libsql-c/tree/master/examples/local) | 使用本地 SQLite 文件运行 libsql。创建数据库、插入数据并执行查询。 |
| [remote](https://github.com/tursodatabase/libsql-c/tree/master/examples/remote) | 连接远程数据库。需要通过环境变量提供 URL 和认证令牌。 |
| [sync](https://github.com/tursodatabase/libsql-c/tree/master/examples/sync) | 演示本地数据库与远程数据库之间的同步。 |
| [batch](https://github.com/tursodatabase/libsql-c/tree/master/examples/batch) | 在单次批处理操作中执行多条 SQL 语句。 |
| [transactions](https://github.com/tursodatabase/libsql-c/tree/master/examples/transactions) | 展示事务的用法：开启事务、执行操作以及提交或回滚。 |
| [memory](https://github.com/tursodatabase/libsql-c/tree/master/examples/memory) | 使用内存中的 SQLite 数据库进行临时存储或快速访问。 |
| [vector](https://github.com/tursodatabase/libsql-c/tree/master/examples/vector) | 处理向量嵌入，存储向量并进行相似度搜索查询。 |
| [encryption](https://github.com/tursodatabase/libsql-c/tree/master/examples/encryption) | 创建并使用加密的 SQLite 数据库，演示相关配置与数据操作。 |
