Struct holochain_state::query::QueryStmt [−][src]
pub struct QueryStmt<'stmt, Q: Query> { /* fields omitted */ }
Expand description
A collection of prepared SQL statements used to perform a cascade query on a particular database.
This type is needed because queries happen in two steps: statement creation, and then statement execution, and a lifetime needs to be enforced across those steps, so we have to hold on to the statements rather than letting them drop as temporary values.
Trait Implementations
fn iter(
&mut self
) -> StateQueryResult<Box<dyn FallibleIterator<Item = Q::Item, Error = StateQueryError> + '_>>
Auto Trait Implementations
impl<'stmt, Q> !RefUnwindSafe for QueryStmt<'stmt, Q>
impl<'stmt, Q> !UnwindSafe for QueryStmt<'stmt, Q>
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more