Crate grebedb[][src]

Lightweight embedded key-value store/database backed by files in a virtual file system interface.

To open a database, use Database:

use grebedb::{Database, Options};

let options = Options::default();
// let mut db = Database::open_memory("path/to/empty/directory/", options)?;
let mut db = Database::open_memory(options)?;

db.put("my_key", "hello world!")?;
db.flush()?;

For important details, such as limitations and guarantees, see the README.md file in the project’s source code repository.

Re-exports

pub use crate::error::Error;

Modules

error

Errors

export

Export and import database key-value pairs.

vfs

Virtual file system interface for database storage.

Structs

Cursor

Cursor for navigating key-value pairs in sorted order.

Database

GrebeDB database interface.

Metadata

Additional non-critical information associated with the database.

Options

Database configuration options.

Enums

CompressionLevel

Database data compression level.

OpenMode

Database open modes.

SyncOption

Level of file synchronization for files created by the database.

Functions

debug_print_page

Print the page contents for debugging purposes.

Type Definitions

KeyValuePair

Type alias for an owned key-value pair.