libSQL
Connect to a libSQL database, used by Turso.
Usage
sql-studio libsql <DATABASE> [AUTH_TOKEN]Arguments
| Argument | Description | Env Var |
|---|---|---|
DATABASE | Path to a local SQLite database file, or the URL of a libSQL server | DATABASE |
AUTH_TOKEN | Authentication token, only used when connecting to a server | AUTH_TOKEN |
Notes
DATABASEis treated as a server URL when it starts withlibsql://,http://,https://,ws://orwss://. Anything else is opened as a local file.- The local mode is useful when you need libSQL-specific features that the standard SQLite driver doesn't provide.
Examples
# Open a local database file
sql-studio libsql ./my-database.db
# Connect to a Turso database
sql-studio libsql libsql://my-db-myorg.turso.io my-auth-token
# Connect to a local libSQL server without authentication
sql-studio libsql http://127.0.0.1:8080
# Using environment variables
export DATABASE="libsql://my-db-myorg.turso.io"
export AUTH_TOKEN="my-auth-token"
sql-studio libsqlConnect SQL Studio to a libSQL database.