Remote/online libSQL databases β additive, and still pure-Go.
New
connect_remote(url, auth_token?)β connect to a remote libSQL server, either a self-hostedsqldor Turso Cloud, over a pure-Go client (no cgo). It returns the same Database object asconnect(), so every existing method βquery/execute/insert/ transactions / schema ops β works over the remote database.- Self-hostable end to end: point
connect_remoteat your own open-sourcesqld, or at Turso Cloud β same client, same SQLite dialect; on-disk files stay standard-SQLite-compatible.
Unchanged (backward compatible)
- The local engine is still pure-Go
modernc.org/sqliteβ no cgo, builds on every platform; existing scripts run identically.
Notes
- go floor 1.19 β 1.20 (the pure-Go libSQL client requires it).
modernc.org/sqliteupgraded v1.24.0 β v1.31.1. - Verified end-to-end against both a local Docker
sqldand Turso Cloud.