mirror of
https://github.com/lexmount/moli.git
synced 2026-10-09 08:01:05 +00:00
38 lines
1.3 KiB
Rust
38 lines
1.3 KiB
Rust
//! A simple IndexedDB backend for Moli.
|
|
//!
|
|
//! This crate intentionally focuses on a small, renderer-agnostic storage core.
|
|
//! It does not expose JS objects or DOM events. The renderer is expected to
|
|
//! adapt request results into `IDB*` wrappers and event dispatch.
|
|
|
|
mod cursor;
|
|
mod error;
|
|
mod key;
|
|
mod manager;
|
|
mod options;
|
|
mod persistence;
|
|
mod state;
|
|
#[cfg(test)]
|
|
mod tests;
|
|
mod transaction;
|
|
mod types;
|
|
mod usage;
|
|
|
|
pub use cursor::{
|
|
CursorDirection, apply_collection_direction, apply_cursor_direction_by_key,
|
|
compare_cursor_direction, compare_cursor_tuple_direction,
|
|
};
|
|
pub use error::IndexedDbError;
|
|
pub use key::{Key, KeyPath};
|
|
pub use options::{
|
|
GetAllOptionsCandidate, IndexOptionsValidationError, ObjectStoreOptionsValidationError,
|
|
TransactionModeParseError, parse_regular_transaction_mode, should_parse_get_all_options,
|
|
validate_index_options, validate_object_store_options,
|
|
};
|
|
pub use state::IndexedDbManager;
|
|
pub use types::{
|
|
DatabaseHandle, DatabaseInfo, DatabaseNameAndVersion, IndexInfo, IndexOptions,
|
|
IndexedDbExternalObject, IndexedDbFileSystemHandleBucket, IndexedDbFileSystemHandleKind,
|
|
IndexedDbQuotaCheck, IndexedDbValue, ObjectStoreInfo, ObjectStoreOptions, OpenDisposition,
|
|
OpenOptions, OpenResult, RequestOutcome, TransactionHandle, TransactionMode,
|
|
};
|