Get started with Turso and C using the libSQL client in a few simple steps.
Retrieve database credentials
.env
.Install
Connect
libsql_database_t
object, and then open a libsql_connection_t
to it:Embedded Replicas
Local only
Remote only
Execute
Sync (Embedded Replicas only)
libsql_database_sync()
on the database to sync your local database with the primary database, unless you are using sync_interval
(though there is no issue with calling sync
with sync_interval
enabled):