Trait holochain_state::query::Stores[][src]

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.

Associated Types

Required methods

Gets the raw initial data from the database, needed to begin the query.

Implementors