Alpha in progress ⭐ Star the repo to stay in the loop.

TURBOREL

Relational Is Back, and It Brought Everything You Need to Build

Tables, graphs, vectors, JSON, XML, geospatial and full-text search. One database, embedded or distributed.

Built from scratch in Rust, Turborel (TUR-boh-rel) is a relational database designed for high performance and a small footprint, with broad compatibility across the modern ecosystem.

Open source under the BSD-2-Clause Plus Patent License.

What’s inside

Strict SQL conformance

Standard SQL is treated as one language, from SQL-86 through SQL:2023, and built clause by clause from the standards’ own text. CONFORMANCE.md lists the features it claims.

Highly extensible

Nearly every part is a plug-in point: storage engines, index methods, data types, functions, optimizer rules, encodings, authentication, wire protocols and more. Each has a built-in version you can replace or add to, and a plug-in can also run as a program of its own, installed from a signed package.

Row and columnar engines

Each table picks its storage engine: row-oriented for transactional work, or columnar for analytics, under the same SQL. Transactions use multi-version concurrency control, a write-ahead log and crash recovery, at any level up to SERIALIZABLE.

An index for each kind of data

B-link trees, hash tables, R-trees, inverted indexes for full text and JSON, and HNSW, DiskANN and IVF for vectors are built in. A cost-based planner picks among them.

Vectors

Dense and sparse embeddings, with HNSW, DiskANN and IVF indexes. Hybrid search combines vector similarity, full-text ranking and SQL filters in one query.

Graphs

GQL and SQL/PGQ property graphs, or native node and edge tables, over the same transactions as the rest of your data. Algorithms such as PageRank run in parallel.

JSON

The SQL/JSON path language, JSON_VALUE, JSON_QUERY and JSON_EXISTS, and the JSON constructors and aggregates.

XML

An XML type queried in XQuery 1.0 by XMLQUERY and XMLTABLE, validated against registered XML Schemas, and published from SQL with XMLELEMENT and XMLAGG.

Spatial and full-text search

Geometries in WKT and WKB, spatial joins and nearest-neighbour queries. SQL/MM Full-Text, with stemming, thesauri and BM25 ranking.

Time-aware data

Application-time periods, system-versioned tables and bitemporal queries with FOR SYSTEM_TIME AS OF.

Analytics

Window functions, grouping sets, recursive queries and MATCH_RECOGNIZE. Sorts and joins spill to disk under one memory budget.

Logic in the database

Stored procedures in SQL/PSM, triggers, user-defined and structured types, and polymorphic table functions.

Secure and replicated

Encryption at rest with AES-256-GCM or ChaCha20-Poly1305, LZ4 compression and TLS. Viewstamped Replication fails over automatically within seconds, and online backups restore to a point in time.

Embedded or as a server

Run it inside your Rust app as a library, or as the turboreld server over TCP, Unix sockets or Windows named pipes.

Connect it to your stack

Use it from Rust, where it’s built in, or from nine other languages with official drivers released alongside the server.

turborel> CLIComes with the server StudioQuery, model, tune, administerTurborel from one desktop app. Rust built in JavaScript Python Go Java C# C++ C PHP Ruby turborel> CLIComes with the server StudioQuery, model, tune, administerTurborel from one desktop app. Rust built in JavaScript Python Go Java C# C++ C PHP Ruby

Drivers, tools and more »

From the blog

All posts » · Atom feed

Releases

  • Turborel nightly

    Built from main at 75f38a1 once it passed every check. Anything may change from one build to the next.

    Linux (x86-64)macOS (Apple silicon)Windows (x86-64)Container

    docker pull ghcr.io/turborel/turborel:nightly

No numbered releases yet. Turborel is in alpha: the nightly above is the way to try it, and the documentation follows main as it changes.

Subscribe to the newsletter to hear when the first release is out.

All releases on GitHub »