turso
A SQL database in Rust: SQLite-compatible, now also speaking Postgres (experimental). The LLVM of databases.
What is turso?
A SQL database in Rust: SQLite-compatible, now also speaking Postgres (experimental). The LLVM of databases.
Overview of turso
What it is
Turso is an in-process SQL database written in Rust, compatible with SQLite. It compiles SQL into bytecode for a virtual machine (VDBE) and then runs that bytecode. SQLite is the primary frontend, and Postgres is now an experimental frontend with its own dialect and wire protocol. The project aims to be for databases what LLVM is to compilers: one modern core with multiple frontends compiled onto it.
Key features
- SQLite compatibility for SQL dialect, file formats, and the C API, tracking SQLite version 3.50.4 -
BEGIN CONCURRENTfor improved write throughput using multi-version concurrency control (MVCC) - Change data capture (CDC) for real-time tracking of database changes - Multi-language support for Go, JavaScript, Java, .NET, Python, Rust, and WebAssembly - Asynchronous I/O support on Linux with
io_uring - Vector support including exact search and vector manipulation - Experimental Postgres compatibility for SQL dialect and wire protocol
Use cases
Applications that need a SQLite-compatible database with additional capabilities such as MVCC for higher write concurrency, change data capture for real-time data streaming, or vector search. Also suitable for projects that want to experiment with a Postgres frontend on the same core engine. The database is general enough to run Doom.
Getting started
Install the latest turso CLI release: shell curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/turso/releases/latest/download/turso_cli-installer.sh | sh Then launch the interactive shell: shell $ tursodb For Rust projects, add the crate: console cargo add turso See the repository README for other languages (JavaScript, Python, Go, .NET, Java) and Docker usage.
License and pricing
Licensed under the MIT License. Open source.
Based on the project's public README and repository metadata.