53 releases (3 major breaking)

new 3.0.0 Oct 12, 2024
2.0.0 Oct 7, 2024
1.0.2 Sep 26, 2024
1.0.1 Jun 28, 2024
0.11.6 Dec 25, 2021

#28 in #leveldb

Download history 274/week @ 2024-06-23 82/week @ 2024-06-30 1/week @ 2024-07-07 60/week @ 2024-07-14 28/week @ 2024-07-21 142/week @ 2024-07-28 73/week @ 2024-08-04 62/week @ 2024-08-11 40/week @ 2024-08-18 69/week @ 2024-08-25 48/week @ 2024-09-01 39/week @ 2024-09-08 54/week @ 2024-09-15 310/week @ 2024-09-22 137/week @ 2024-09-29 372/week @ 2024-10-06

879 downloads per month
Used in 8 crates (6 directly)

GPL-3.0 license

225KB
6.5K SLoC

GitHub top language Rust Latest Version Rust Documentation Minimum rustc version

vsdb

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

This is a simplified version of the original 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

  • rocks_backend, use rocksdb as the backend database
    • Stable ?
    • C++ implementation, difficult to be compiled into a static binary
  • [ DEFAULT ] 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 vsdb 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–11MB
~143K SLoC