vsdb

Crates.iovsdb
lib.rsvsdb
version3.0.0
sourcesrc
created_at2021-12-11 04:07:42.026729
updated_at2024-10-12 12:26:05.693339
descriptionA std-collection-like database
homepagehttps://github.com/rust-util-collections/vsdb
repositoryhttps://github.com/rust-util-collections/vsdb/tree/master/wrappers
max_upload_size
id496070
size214,686
(ktmlm)

documentation

README

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
Commit count: 370

cargo fmt