Skip to main content
Multilingual TursoDB, MVCC & AI Agent database guides Read Engine Guide →
Turso Database Getting Started

Quickstart

Quickstart — Turso documentation.

1. Install

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/turso/releases/latest/download/turso_cli-installer.sh | sh

2. Launch

Then launch the interactive shell:

tursodb

This will start the Turso interactive shell where you can execute SQL statements:

Turso
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database
turso>

3. Execute

Now you can execute SQL statements in the interactive shell:

Create a table

Create a table for users:

CREATE TABLE users (id INT, username TEXT);
Insert data

Insert some data into the users table:

INSERT INTO users VALUES (1, 'alice');
INSERT INTO users VALUES (2, 'bob');
Query data

Query all users from the table:

SELECT * FROM users;

This will return:

1|alice
2|bob

Experimental Features

You can enable experimental features when launching tursodb using various flags such as --experimental-encryption, --experimental-strict, and --experimental-views. MVCC needs no flag: it is production ready and enabled with PRAGMA journal_mode = mvcc.

Note: These features are not production ready, so do not use them for critical data right now.

For a complete list of available flags and options, see the Turso manual.

Synced from official Turso documentation ( tursodatabase/turso-docs · MIT License) Official Docs ↗
Search
Press Esc to close · Powered by Pagefind