82 releases (18 stable)

Uses new Rust 2021

new 2.0.2 Aug 12, 2022
1.5.3 Aug 10, 2022
1.1.1 Jul 29, 2022
1.0.1 Jan 9, 2022
0.1.29 Nov 30, 2021

#22 in Database implementations

Download history 75/week @ 2022-04-22 465/week @ 2022-04-29 466/week @ 2022-05-06 1131/week @ 2022-05-13 202/week @ 2022-05-20 481/week @ 2022-05-27 466/week @ 2022-06-03 5/week @ 2022-06-10 6/week @ 2022-06-17 4/week @ 2022-06-24 72/week @ 2022-07-01 70/week @ 2022-07-08 142/week @ 2022-07-15 225/week @ 2022-07-22 188/week @ 2022-07-29 189/week @ 2022-08-05

746 downloads per month
Used in rustdb-axum-example

MIT/Apache

295KB
7.5K SLoC

rustdb

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.

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 ).

Transactions can be logged, allowing database replication.

See https://github.com/georgebarwood/rustdb-axum-example for example program : an Axum-based webserver, with timed jobs, password hashing, data compression, email transmission and database replication.

crates.io : https://crates.io/crates/rustdb documentation: https://docs.rs/rustdb/latest/rustdb/

Dependencies

~0.4–0.9MB
~21K SLoC