Get started with Turso and Rust using the libSQL crate in a few simple steps
Retrieve database credentials
.env
.Install
libsql
crate:Connect
Database
object and then open a Connection
to it:Embedded Replicas
Local only
Remote only
Execute
execute()
:query()
method:Sync (Embedded Replicas only)
sync()
on the database type to sync your local database with the primary database: