Skip to main content

Crate calimero_storage

Crate calimero_storage 

Source
Expand description

Storage interface providing functionality for interacting with stored data.

This module provides the primary interface for interacting with the storage system, as a layer on top of the underlying database store.

Re-exports§

pub use merge::register_crdt_merge;
pub use entities::Data;
pub use entities::Element;
pub use error::StorageError;
pub use interface::Interface;

Modules§

action
Synchronization action types for CRDT operations.
address
Element addressing via unique IDs and hierarchical paths.
collections
High-level data structures for storage.
constants
Storage configuration constants.
delta
Storage delta for synchronization.
entities
Core entity types for the storage system.
env
Environment bindings for the storage crate.
error
Error types for the storage system.
exports
Re-exported types, mostly for use in macros (for convenience).
index
Indexing system for efficient tree navigation.
integration
Types used for integration with the runtime.
interface
Storage interface implementing a repository pattern for CRDT-based data.
js
JavaScript-friendly wrapper types around Calimero storage collections.
logical_clock
Hybrid Logical Clock infrastructure for CRDT ordering.
merge
CRDT merge logic for concurrent updates.
snapshot
Snapshot generation and application for CRDT state.
store
Storage operations.

Macros§

is_crdt
Helper macro to check if a type is a CRDT at compile time.

Derive Macros§

AtomicUnit
Re-export the storage macros Derives the AtomicUnit trait for a struct.
Collection
Re-export the storage macros Derives the Collection trait for a struct.