284 releases (stable)

5.2.100 Apr 30, 2024
5.2.95 Mar 31, 2024
4.0.42 Jan 1, 2024
4.0.39 Dec 31, 2023
0.1.29 Nov 30, 2021

#24 in Database implementations

Download history 75/week @ 2024-01-20 61/week @ 2024-01-27 74/week @ 2024-02-03 630/week @ 2024-02-10 2338/week @ 2024-02-17 1774/week @ 2024-02-24 2651/week @ 2024-03-02 2152/week @ 2024-03-09 1590/week @ 2024-03-16 483/week @ 2024-03-23 447/week @ 2024-03-30 35/week @ 2024-04-06 5/week @ 2024-04-13 127/week @ 2024-04-20 303/week @ 2024-04-27 27/week @ 2024-05-04

464 downloads per month
Used in 3 crates

MIT/Apache

410KB
11K 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 transmission and timed jobs.

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

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

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

Dependencies

~240KB