Turso is an in-process SQL database compatible with SQLite files and APIs. It compiles queries to bytecode on a shared virtual machine and adds bindings for many languages.
Overview
Turso Database is an in-process SQL database written in Rust. It aims for SQLite compatibility at the SQL dialect, file format, and C API levels, and existing SQLite database files can be opened directly. SQL is compiled into bytecode for an internal virtual machine called the VDBE, similar in spirit to how SQLite executes queries.
The same core engine can host more than one SQL frontend. SQLite remains the primary dialect, while Postgres SQL and wire protocol support is available as an experimental frontend sharing storage, concurrency, and the query compiler with SQLite mode.
Documented capabilities include BEGIN CONCURRENT write throughput with MVCC, change data capture, vector search, extended schema management, asynchronous I/O on Linux via io_uring, and cross-platform use on Linux, macOS, Windows, and browsers through WebAssembly. Experimental areas cover encryption at rest, incremental computation with DBSP, and multi-process WAL coordination.
Developers embed Turso through language bindings for Go, JavaScript, Java, .NET, Python, Rust, and WebAssembly. A turso CLI provides an interactive SQL shell, Docker-based runs, and an MCP server mode so AI assistants can query and mutate attached database files.
Key features
- SQLite-compatible dialect and file format
- Bytecode VM with multiple SQL frontends
- Experimental Postgres dialect and wire protocol
- BEGIN CONCURRENT MVCC writes
- Change data capture
- Vector search support
- Multi-language client bindings
- CLI with MCP server mode
Use cases
- Embedded SQLite-compatible storage in applications
- Local SQL databases via CLI or bindings
- Browser-side databases through WebAssembly
- AI assistant database access via MCP
- Experimental Postgres protocol workloads