项目
关于
Std-style data container with 'Git-like' features.
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文VSDB
VSDB is an embedded Rust database. Use vsdb for typed maps, branch history,
Merkle proofs, slot pagination, parent overlays and vector search. Use
vsdb_core directly for byte keys and values or namespace administration.
Choose a collection · Raw storage API
Quick start
cargo add vsdb@19
VSDB supports x86_64 and aarch64. Building MMDB's bundled Zstd backend
requires a C toolchain.
Set VSDB_BASE_DIR to choose the database directory. Default paths and configuration
use vsdb::{Mapx, Result};
type Stock = Mapx<String, u64>;
fn main() -> Result<()> {
let mut stock = Stock::new();
stock.insert(&"apples".into(), &3);
stock.try_sync_wal()?;
let id = stock.save_meta()?;
let reopened = Stock::from_meta(id)?;
assert_eq!(reopened.get("apples"), Some(3));
Ok(())
}
try_sync_wal() makes the write durable. Keep the InstanceId returned by
save_meta() to reopen the map in a later process using the same database.
Documentation
License
探索相关项目
加载中…