Struct mentat_ffi::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]
impl QueryInputs
pub fn with_value_sequence(vals: Vec<(Variable, TypedValue)>) -> QueryInputs
[src]
pub fn with_value_sequence(vals: Vec<(Variable, TypedValue)>) -> QueryInputs
pub fn with_type_sequence(types: Vec<(Variable, ValueType)>) -> QueryInputs
[src]
pub fn with_type_sequence(types: Vec<(Variable, ValueType)>) -> QueryInputs
pub fn with_values(values: BTreeMap<Variable, TypedValue>) -> QueryInputs
[src]
pub fn with_values(values: BTreeMap<Variable, TypedValue>) -> QueryInputs
pub fn new(
types: BTreeMap<Variable, ValueType>,
values: BTreeMap<Variable, TypedValue>
) -> Result<QueryInputs, AlgebrizerError>
[src]
pub fn new(
types: BTreeMap<Variable, ValueType>,
values: BTreeMap<Variable, TypedValue>
) -> Result<QueryInputs, AlgebrizerError>
Trait Implementations
impl Default for QueryInputs
[src]
impl Default for QueryInputs
fn default() -> QueryInputs
[src]
fn default() -> QueryInputs
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl !Send for QueryInputs
impl !Send for QueryInputs
impl !Sync for QueryInputs
impl !Sync for QueryInputs