Skip to content
프로젝트

소개

Std-style data container with 'Git-like' features.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

VSDB

Crates.io Docs.rs Rust

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

MIT

관련 프로젝트 살펴보기

불러오는 중…