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