libSQL C Reference
libsql.h
header file in your project and link against the liblibsql.so
shared library.
libsql_database_sync
function allows you to sync manually the local database with the remote counterpart:
sync_interval
parameter in the database description allows you to set an interval for automatic synchronization of the database in the background:
not_read_your_writes
parameter in the database description configures the database connection to ensure that writes are immediately visible to subsequent read operations initiated by the same connection. This is enabled by default, and you can disable it by setting not_read_your_writes
to true
:
libsql_connection_batch
for simple queries without parameters:
libsql_connection_prepare
and libsql_statement_query
:
libsql_connection_prepare
and then execute it with libsql_statement_execute
or libsql_statement_query
: