Trait holochain_state::query::Stores
source · pub trait Stores<Q: Query> {
type O: StoresIter<Q::Item>;
fn get_initial_data(&self, query: Q) -> StateQueryResult<Self::O>;
}
Expand description
Represents the data sources which are needed to perform a Query. From these sources, we need:
- a collection of Data needed by the query (
Q::Data
) - the ability to fetch an Entry during the Render phase of the query.
Required Associated Types
type O: StoresIter<Q::Item>
Required Methods
sourcefn get_initial_data(&self, query: Q) -> StateQueryResult<Self::O>
fn get_initial_data(&self, query: Q) -> StateQueryResult<Self::O>
Gets the raw initial data from the database, needed to begin the query.