Documentation Index
Fetch the complete documentation index at: https://docs.turso.tech/llms.txt
Use this file to discover all available pages before exploring further.
This SDK is community maintained and may not be officially supported by Turso, or up to date with the latest features. Join the
#libsql-dart channel on Discord for help and feedback.- Retrieve database credentials
- Install the Flutter/Dart libSQL client
- Connect to a local or remote Turso database
- Execute a query using SQL
- Sync changes to local database (optional)
Retrieve database credentials
You will need an existing database to continue. If you don’t have one, create one.Get the database URL:Get the database authentication token:Assign credentials to the environment variables inside
.env.You will want to store these as environment variables.
Initialize
Now connect to your local or remote database using the
LibsqlClient constructor:Embedded Replicas
Embedded Replicas
Local only
Local only
Remote only
Remote only