Skip to main content

Crate yugendb_core

Crate yugendb_core 

Source
Expand description

Core Rust contracts for yugendb.

yugendb is a typed key-value and document storage layer. Applications store serialised values by namespace, collection, and key.

This crate defines the shared Rust abstractions used by concrete drivers, so application code can stay consistent across supported databases.

Re-exports§

pub use batch::Batch;
pub use batch::BatchOperation;
pub use batch::BatchResult;
pub use capabilities::Capabilities;
pub use codec::Codec;
pub use codec::CodecExt;
pub use codec::JsonCodec;
pub use collection::Collection;
pub use driver::Driver;
pub use error::ErrorCode;
pub use error::Result;
pub use error::YugenDbError;
pub use key::CollectionName;
pub use key::Key;
pub use key::Namespace;
pub use options::DeleteOptions;
pub use options::ReadOptions;
pub use options::ScanOptions;
pub use options::WriteOptions;
pub use store::Store;
pub use store::StoreBuilder;
pub use transaction::Transaction;
pub use value::StoredValue;
pub use value::ValueBytes;
pub use value::ValueMetadata;

Modules§

batch
Batch operation types.
capabilities
Driver capability reporting.
codec
Codec model for serialising and deserialising typed values.
collection
Typed collection handle.
driver
Driver trait for concrete storage backends.
error
Structured error model for yugendb.
key
Namespace, collection name, and key validation.
options
Operation option types.
store
User-facing store and builder types.
transaction
Transaction trait for drivers that support transaction-like behaviour.
value
Stored byte value and metadata types.