2 stable releases

1.1.1 Jun 28, 2024
1.1.0 Jun 18, 2024
1.0.0 May 28, 2024

#360 in Database implementations

Download history 18/week @ 2024-09-13 27/week @ 2024-09-20 15/week @ 2024-09-27 1/week @ 2024-10-04

857 downloads per month
Used in 4 crates (3 directly)

GPL-3.0 license

230KB
6.5K SLoC

GitHub top language Rust Latest Version Rust Documentation Minimum rustc version

mmdb

mmdb is a 'std-collection-like' database.

This is a simplified version of vsdb, retaining only the most practical and stable parts.

To view the change log check here.

Highlights

  • Most APIs is similar as the coresponding data structures in the standard library
    • Use Vecx just like Vec
    • Use Mapx just like HashMap
    • Use MapxOrd just like BTreeMap
  • ...

Compilation features

  • [ DEFAULT ] rocks_backend, use rocksdb as the backend database
    • Stable
    • C++ implementation, difficult to be compiled into a static binary
  • parity_backend, use parity-db as the backend database
    • Experimental
    • Pure rust implementation, can be easily compiled into a static binary
  • msgpack_codec, use rmp-serde as the codec
    • Faster running speed than json
  • json_codec, use serde_json as the codec
    • Better generality and compatibility
  • compress, enable compression in the backend database

NOTE

  • The serialized result of a mmdb instance can not be used as the basis for distributed consensus
    • The serialized result only contains some meta-information(storage paths, etc.)
    • These meta-information are likely to be different in different environments
    • The correct way is to read what you need from it, and then process the real content

Dependencies

~2–12MB
~148K SLoC