152 releases (88 stable)

new 4.0.24 Dec 6, 2023
4.0.7 Nov 30, 2023
3.2.22 Nov 25, 2023
3.2.3 Sep 24, 2022
0.1.29 Nov 30, 2021

#27 in Database implementations

Download history 117/week @ 2023-08-18 112/week @ 2023-08-25 15/week @ 2023-09-01 142/week @ 2023-09-08 140/week @ 2023-09-15 8/week @ 2023-09-22 24/week @ 2023-09-29 20/week @ 2023-10-06 20/week @ 2023-10-13 19/week @ 2023-10-20 239/week @ 2023-10-27 77/week @ 2023-11-03 342/week @ 2023-11-10 219/week @ 2023-11-17 802/week @ 2023-11-24 836/week @ 2023-12-01

2,213 downloads per month
Used in 3 crates

MIT/Apache

325KB
9K 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/rustweb2 for example program : a webserver based on rustdb database, with database browsing, password hashing, database replication, email tranmission and timed jobs.

crates.io : https://crates.io/crates/rustdb

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

blog: https://rustdb.wordpress.com/

Dependencies

~0.4–1MB
~24K SLoC