Skip to main content

yugendb_core/
lib.rs

1//! Core Rust contracts for yugendb.
2//!
3//! yugendb is a typed key-value and document storage layer. Applications store
4//! serialised values by namespace, collection, and key.
5//!
6//! This crate defines the shared Rust abstractions used by concrete drivers, so
7//! application code can stay consistent across supported databases.
8
9pub mod batch;
10pub mod capabilities;
11pub mod codec;
12pub mod collection;
13pub mod driver;
14pub mod error;
15pub mod key;
16pub mod options;
17pub mod store;
18pub mod transaction;
19pub mod value;
20
21pub use batch::{Batch, BatchOperation, BatchResult};
22pub use capabilities::Capabilities;
23pub use codec::{Codec, CodecExt, JsonCodec};
24pub use collection::Collection;
25pub use driver::Driver;
26pub use error::{ErrorCode, Result, YugenDbError};
27pub use key::{CollectionName, Key, Namespace};
28pub use options::{DeleteOptions, ReadOptions, ScanOptions, WriteOptions};
29pub use store::{Store, StoreBuilder};
30pub use transaction::Transaction;
31pub use value::{StoredValue, ValueBytes, ValueMetadata};