libSQL Overview libSQL is a fork of SQLite that adds replication, HTTP API access, and embedded replicas. It is the database engine behind Turso. Use the SDK to connect to local SQLite files, in-memory databases, or Turso cloud databases with the same API. Installation Connection Modes Local SQLite File In-Memory (testing) Turso Cloud Embedded Replica Local SQLite file that syncs from a remote Turso database. Reads hit the local file (fast), writes go to the remote and sync back: HTTP Mode (Edge) For edge environments where native SQLite bindings are not available: Basic Queries Batch Queries…