talira

Turso Database

An in-process SQL database written in Rust, compatible with SQLite, now with a Postgres frontend too

open sourceMITself-hostablefree

Turso Database is an in-process SQL database written in Rust as a rewrite of SQLite, compatible with SQLite's SQL dialect, file format and C API, so existing SQLite files work as they are. Like SQLite it compiles SQL into bytecode for a virtual machine, which lets one engine host more than one dialect: an experimental Postgres frontend speaks the Postgres dialect and wire protocol. It adds BEGIN CONCURRENT writes using MVCC, change data capture, asynchronous I/O with io_uring on Linux, vector search, faster schema changes with extended ALTER, and experimental encryption at rest, incremental view maintenance with DBSP, full-text search with tantivy and multi-process WAL coordination. It has bindings for Go, JavaScript, Java, .NET, Python, Rust and WebAssembly, runs on Linux, macOS, Windows and in browsers, and comes with a tursodb interactive shell. Turso develops it as the successor to libSQL and runs it in production, including in Turso Cloud.

Problems it solves

  • SQLite allows only one writer at a time and my writes queue up
  • an embedded SQLite-compatible database with vector search
  • use SQLite from Rust, Go, JavaScript or Python with async I/O
  • run an embedded database in the browser with WebAssembly
  • track changes to an embedded database in real time
  • an embedded database that also speaks the Postgres wire protocol

Features

  • SQLite compatibility: SQL dialect, file format and C API
  • BEGIN CONCURRENT with MVCC
  • change data capture
  • async I/O with io_uring on Linux
  • vector search
  • extended ALTER and faster schema changes
  • experimental Postgres dialect and wire protocol
  • experimental encryption at rest, DBSP incremental views and tantivy full-text search
  • bindings for Go, JavaScript, Java, .NET, Python, Rust and WebAssembly
  • tursodb interactive shell

Limitations

  • It hasn't reached 1.0: compatibility with SQLite isn't complete yet, and Postgres compatibility, encryption at rest and full-text search are experimental.1

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Turso Database does.

  1. SQLite Small. Fast. Reliable. Choose any three.
  2. libSQL Open source, open contribution fork of SQLite by Turso
  3. rqlite The fault-tolerant relational database built on SQLite
  4. DuckDB An in-process analytical SQL database that queries CSV, JSON, Parquet and Iceberg files directly, from a laptop to a large server.

Compare Turso Database with the top 3