Trait mentat_transaction::Queryable
[−]
[src]
pub trait Queryable { fn q_explain<T>(&self, query: &str, inputs: T) -> Result<QueryExplanation>
where
T: Into<Option<QueryInputs>>; fn q_once<T>(&self, query: &str, inputs: T) -> Result<QueryOutput>
where
T: Into<Option<QueryInputs>>; fn q_prepare<T>(&self, query: &str, inputs: T) -> PreparedResult
where
T: Into<Option<QueryInputs>>; fn lookup_values_for_attribute<E>(
&self,
entity: E,
attribute: &Keyword
) -> Result<Vec<TypedValue>>
where
E: Into<Entid>; fn lookup_value_for_attribute<E>(
&self,
entity: E,
attribute: &Keyword
) -> Result<Option<TypedValue>>
where
E: Into<Entid>; }
Required Methods
fn q_explain<T>(&self, query: &str, inputs: T) -> Result<QueryExplanation> where
T: Into<Option<QueryInputs>>,
T: Into<Option<QueryInputs>>,
fn q_once<T>(&self, query: &str, inputs: T) -> Result<QueryOutput> where
T: Into<Option<QueryInputs>>,
T: Into<Option<QueryInputs>>,
fn q_prepare<T>(&self, query: &str, inputs: T) -> PreparedResult where
T: Into<Option<QueryInputs>>,
T: Into<Option<QueryInputs>>,
fn lookup_values_for_attribute<E>(
&self,
entity: E,
attribute: &Keyword
) -> Result<Vec<TypedValue>> where
E: Into<Entid>,
&self,
entity: E,
attribute: &Keyword
) -> Result<Vec<TypedValue>> where
E: Into<Entid>,
fn lookup_value_for_attribute<E>(
&self,
entity: E,
attribute: &Keyword
) -> Result<Option<TypedValue>> where
E: Into<Entid>,
&self,
entity: E,
attribute: &Keyword
) -> Result<Option<TypedValue>> where
E: Into<Entid>,
Implementors
impl<'a, 'c> Queryable for InProgressRead<'a, 'c>
impl<'a, 'c> Queryable for InProgress<'a, 'c>