Module holochain_state::prelude
source · Re-exports§
pub use crate::mutations::*;
pub use crate::query::prelude::*;
pub use crate::source_chain::*;
pub use crate::validation_db::*;
pub use crate::validation_receipts::*;
pub use crate::wasm::*;
pub use crate::workspace::*;
pub use crate::*;
pub use crate::test_utils::*;
Structs§
- Specifies the environment used for authoring data by all cells on the same
DnaHash
. - Specifies the environment used by each Cache (one per dna).
- Specifies the environment used by a Conductor
- Specifies the environment used for dht data by all cells on the same
DnaHash
. - State of the p2p network (one per space).
- Metrics for peers on p2p network (one per space).
- Specifies the environment used to save wasm
- A read-only version of DbWrite. This environment can only generate read-only transactions, never read-write.
- The canonical representation of a (singleton) database. The wrapper contains methods for managing transactions and database connections,
- Newtype to hand out connections that can only be used for running transactions
Enums§
- The various types of database, used to specify the list of databases to initialize
- The sqlite synchronous level. Corresponds to the
PRAGMA synchronous
pragma. See sqlite documentation. - The strategy for database file system synchronization. Some databases like the cache can be safely rebuilt if corruption occurs due to using the faster
DbSyncLevel::Off
.
Traits§
- Extension trait to treat database read handles as p2p store accessors.
- Extension trait to treat transaction instances as p2p store accessors.
- Extension trait to treat database write handles as p2p store accessors.
- An
Iterator
-like trait that allows for calculation of items to fail.
Functions§
- Prune all expired AgentInfoSigned records from the p2p_store
- Put an AgentInfoSigned record into the p2p_store
- Put an iterator of AgentInfoSigned records into the p2p_store
- Insert a p2p record from within a write transaction.