Skip to main content

Crate holochain_state

Crate holochain_state 

Source
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_data crate.
dht_store
Per-DNA store for the holochain_data DHT database.
dna_def
entry_def
host_fn_workspace
mutations
peer_metadata_store
Module to wrap the Peer Metadata Store database from the holochain_data crate.
prelude
query
schedule
scratch
source_chain
validation_db
Validation database types and functions.
wasm