Module holochain_state::query
source · Re-exports
pub use error::*;
Modules
Structs
A common accumulator type used by folds to collapse queries down to a
simpler structure, i.e. to let deletions annihilate creations.
A collection of prepared SQL statements used to perform a cascade query
on a particular database.
Wrapper around a transaction reference, to which trait impls are attached
Wrapper around a collection of Txns, to which trait impls are attached
Traits
Queries that can have access to private data will
implement this trait.
You should keep your query type cheap to clone.
If there is any large data put it in an Arc.
Represents the data sources which are needed to perform a Query.
From these sources, we need:
Each Stores implementation has its own custom way of iterating over itself,
which this trait represents.
Functions
Deserialize a BLOB from a database into a value
Fetch an Entry from a DB by its hash. Requires no joins.
Fetch a public Entry from a DB by its hash.
Get a
DhtOp
from the database
filtering out private entries and
DhtOp::StoreEntry
where the entry
is private.
The ops are suitable for publishing / gossiping.Serialize a value to be stored in a database as a BLOB type
Type Definitions
Alias for the params required by rusqlite query execution
Helper for getting to the inner Data type of the Item of a Query
Alias for an array of Transaction references