1 unstable release

new 0.9.0 Dec 14, 2024
0.7.0 Dec 13, 2024
0.3.1 Nov 28, 2024

#586 in Database interfaces

Download history 147/week @ 2024-11-22 333/week @ 2024-11-29 182/week @ 2024-12-06

662 downloads per month

MIT license

68KB
2K SLoC

Minimalistic database

The library allows to store a value associated with a key.

The size of the value must not be larger than 1.5 MiB (1536 kiB).

The size of the key can vary and is limited by 1 kiB.

ACID is not tested well.

TODO:

  • Full encryption (Adiantum).
  • More tests.
  • More tests for ACID.

Difficult

  • B-Tree: implement table scanning.
  • Extent allocation -> Unlimited value;
  • Better parallelism.

lib.rs:

Database Maximal size: (2 ^ 44) B = 16 TiB Maximal key size: (2 ^ 10) B = 1 kiB Maximal number of records: 2 ^ 30

Dependencies

~2–10MB
~134K SLoC