Struct mentat_transaction::query::QueryInputs
[−]
[src]
pub struct QueryInputs { /* fields omitted */ }
Define the inputs to a query. This is in two parts: a set of values known now, and a set of
types known now.
The separate map of types is to allow queries to be algebrized without full knowledge of
the bindings that will be used at execution time.
When built correctly, types
is guaranteed to contain the types of values
-- use
QueryInputs::new
or QueryInputs::with_values
to construct an instance.
Methods
impl QueryInputs
[src]
pub fn with_value_sequence(vals: Vec<(Variable, TypedValue)>) -> QueryInputs
[src]
pub fn with_type_sequence(types: Vec<(Variable, ValueType)>) -> QueryInputs
[src]
pub fn with_values(values: BTreeMap<Variable, TypedValue>) -> QueryInputs
[src]
pub fn new(
types: BTreeMap<Variable, ValueType>,
values: BTreeMap<Variable, TypedValue>
) -> Result<QueryInputs, AlgebrizerError>
[src]
types: BTreeMap<Variable, ValueType>,
values: BTreeMap<Variable, TypedValue>
) -> Result<QueryInputs, AlgebrizerError>
Trait Implementations
impl Default for QueryInputs
[src]
fn default() -> QueryInputs
[src]
Returns the "default value" for a type. Read more