← All repos

turso

A SQL database in Rust: SQLite-compatible, now also speaking Postgres (experimental). The LLVM of databases.

databaseembedded-databasesqlsqlite3webassembly
Browse cluster: SQL databases and distributed systems
19,385commits
323contributors
22languages

Tech stack & purpose

Turso is a SQL database engine written in Rust that maintains SQLite compatibility while also experimentally supporting the PostgreSQL protocol. The project reimplements SQLite as a 40+ crate Rust workspace, encompassing a bytecode-interpreting query executor, B-tree storage engine, write-ahead logging system, SQL parser, and extension framework. The tech stack centers on Rust with bindings provided for C, Python, JavaScript, Java, .NET, and Go, plus an Entity Framework Core provider for .NET applications. The project includes both local embedded databases and remote cloud sync capabilities through the Turso Cloud platform, with testing infrastructure spanning TCL compatibility suites, Rust unit tests, deterministic concurrency simulators, and differential oracles for validation against SQLite.

Community & reference links

Languages

Rust
80.8%
PLpgSQL
5.6%
C
3.3%
Python
2.5%
TypeScript
2.0%
C#
1.8%
Java
1.1%
Go
0.9%
JavaScript
0.7%
C++
0.4%
Tcl
0.3%
Shell
0.3%
MDX
0.2%
Makefile
0.1%
Dockerfile
0.0%
TLA
0.0%
Objective-C++
0.0%
Nix
0.0%
Ruby
0.0%
CMake
0.0%
Objective-C
0.0%
PowerShell
0.0%

Contributors (top 30 of 323)