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