66 releases (2 stable)

Uses new Rust 2021

1.0.1 Jan 9, 2022
1.0.0 Dec 28, 2021
0.9.0 Dec 27, 2021
0.1.29 Nov 30, 2021

#24 in Database implementations

Download history 312/week @ 2021-11-19 216/week @ 2021-11-26 391/week @ 2021-12-03 281/week @ 2021-12-10 61/week @ 2021-12-17 57/week @ 2021-12-24 83/week @ 2021-12-31 40/week @ 2022-01-07 5/week @ 2022-01-14

185 downloads per month
Used in rustdb-axum-example




Database with SQL-like language implemented in Rust.

The SQL-like language is relatively minimal, and does not (currently) include features such as joins or views. Instead it has high performance SET .. FROM … and FOR .. FROM statements to access database tables, generally using an INDEX.

The complete language manual is available at run-time via the pre-configured (but optional) init::INITSQL database initialisation string, which also includes many functions which illustrate how the language works, including generic table browsing/editing, date and other functions.

Read-only transactions run immediately and concurrently on a virtual read-only copy of the database, and cannot be blocked.

Write transactions run sequentially (and should typically execute in around 100 micro-seconds).

The Storage trait allows a variety of underlying storage, including SimpleFileStorage, MemFile and AtomicFile.

Data is accessed either by a Transaction interface or directly ( as an offset into a page of byte data ).


~23K SLoC