#sled #rocksdb #lmdb #redb #tikv

surrealkv

A low-level, versioned, embedded, ACID-compliant, key-value database for Rust

7 releases

new 0.1.6 Apr 25, 2024
0.1.5 Apr 24, 2024
0.1.3 Feb 22, 2024

#112 in Concurrency

Download history 16/week @ 2024-02-02 303/week @ 2024-02-09 757/week @ 2024-02-16 429/week @ 2024-02-23 409/week @ 2024-03-01 423/week @ 2024-03-08 727/week @ 2024-03-15 660/week @ 2024-03-22 566/week @ 2024-03-29 656/week @ 2024-04-05 722/week @ 2024-04-12 333/week @ 2024-04-19

2,396 downloads per month
Used in 8 crates (4 directly)

Apache-2.0

375KB
7.5K SLoC

surrealkv

surrealkv is a versioned, low-level, embedded key-value database implemented in Rust. This ACID-compliant database offers the following features:

  • Transaction Support: SurrealKV supports rich transactions, allowing multiple items to be inserted, updated, or deleted simultaneously. These transactions are applied atomically, ensuring atomicity and consistency in line with ACID principles. This makes updates invisible until they are committed.

  • Isolation: SurrealKV provides two levels of isolation - Snapshot Isolation and Serializable Snapshot Isolation - to prevent concurrent transactions from interfering with each other.

  • Durability: SurrealKV ensures durability by persisting data on disk, protecting against data loss in the event of a system failure.

  • Multi-Version Concurrency Control (MVCC): SurrealKV employs immutable versioned adaptive radix tries via vart. This allows for any number of concurrent readers and writers to operate without blocking each other.

For more information on the underlying immutable versioned adaptive radix tries used, visit vart.

License

Features

  • In-memory Index
  • Embeddable
  • ACID Semantics
  • Transaction Support:
  • Built-in Item Versioning API
  • Multi-Version Concurrency Control (MVCC) support
  • Multiple Concurrent Readers and Writers
  • Persistence through an append-only File

Important Notice

This project is actively evolving, and as such, there might be changes to the file format, APIs, and feature set in future releases until reaching stability. Developers are encouraged to stay informed about updates and review future release notes for any breaking changes.

Feel free to contribute, provide feedback, or report issues to help shape the future of surrealkv. Thank you for your interest and involvement in this project!

Dependencies

~7–15MB
~145K SLoC