Skip to main content

Quickstart

1

Install

Add the Turso database package to your JavaScript project:
2

Connect

Here’s how you can connect to a local SQLite database:
3

Create table

Create a table for users:
4

Insert data

Insert some data into the users table:
5

Query data

Query all users from the table:

Examples

Explore these JavaScript examples to learn more about using Turso Database:
  • Node — Node.js, local file database (no sync)
  • Wasm + Vite — Browser (WASM), local database in the browser