Expand description
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§
- Compression
Level - Database data compression level.
- Open
Mode - Database open modes.
- Sync
Option - Level of file synchronization for files created by the database.
Functions§
- debug_
print_ page - Print the page contents for debugging purposes.
Type Aliases§
- KeyValue
Pair - Type alias for an owned key-value pair.