Registry / database / kvdb
library0.13.0rscratesunverified

Generic key-value trait for database abstractions.

# Cargo.toml [dependencies] kvdb = "0.13.0"
INSTALL
IMPORT
SIG · KVDB
K
kvdb
databaserustv0.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

KeyValueDB
use kvdb::KeyValueDB;

Defines a custom key-value store by implementing the KeyValueDB trait.

use kvdb::KeyValueDB; // Implement the trait for a custom database struct MyDB; impl KeyValueDB for MyDB { fn get(&self, key: &[u8]) -> Option<Vec<u8>> { None } fn put(&self, key: &[u8], value: &[u8]) -> Result<(), ()> { Ok(()) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.13.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
kvdb — cargo add kvdb · libregistry