Expand description
The Holochain state crate provides helpers and abstractions for working with Holochain’s persistent data stores.
§Reads
The DhtStore and DhtStoreRead types are the main abstractions for
reading data, combining database access with the in-memory scratch space.
The source_chain module provides the SourceChain type,
which is the abstraction for working with chains of actions.
The host_fn_workspace module provides abstractions for reading data during workflows.
§Writes
The mutations module provides error types for state write operations.
§In-memory
The scratch module provides the Scratch type for
reading and writing data in memory that is not visible anywhere else.
The SourceChain type uses the Scratch for in-memory operations which can be flushed to the database.
Re-exports§
pub use dht_store::DhtStore;pub use dht_store::DhtStoreRead;
Modules§
- chain_
lock - conductor
- A wrapper around the conductor database for managing conductor state.
- data
- Re-exports from the
holochain_datacrate. - dht_
store - Per-DNA store for the
holochain_dataDHT database. - dna_def
- entry_
def - host_
fn_ workspace - mutations
- peer_
metadata_ store - Module to wrap the Peer Metadata Store database from the
holochain_datacrate. - prelude
- query
- schedule
- scratch
- source_
chain - validation_
db - Validation database types and functions.
- wasm