LibSQL have various connection flavors that allow you to improved in such condition and needs. Let’s break-down each of those flavors.
libsql:dbname=database.db
."database.db"
."file:database.db"
.DATABASE_URL
and DATABASE_AUTH_TOKEN
.
If you already have Turso/LibSQL Database account, do following this commands:
Get the database URL:
.env
or somewhere else.
libsql://
:
https://
:
libsql://
or https://
protocol in the DSN string. The format is:
/home/turso/app/database.db
remember the back-slash at the begining.5
).true
).