# Turso 範例（C）

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

---
| 範例 | 說明 |
| - | - |
| [local](https://github.com/tursodatabase/libsql-c/tree/master/examples/local) | 使用 libsql 搭配本機 SQLite 檔案。建立資料庫、插入資料並進行查詢。 |
| [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 資料庫，示範設定流程與資料操作。 |
