pub struct IndexInfo(_);
Expand description
Pass information into and receive the reply from the VTab.best_index
method.
(See SQLite doc)
Implementations§
source§impl IndexInfo
impl IndexInfo
sourcepub fn constraints(&self) -> IndexConstraintIter<'_> ⓘ
pub fn constraints(&self) -> IndexConstraintIter<'_> ⓘ
Record WHERE clause constraints.
sourcepub fn order_bys(&self) -> OrderByIter<'_> ⓘ
pub fn order_bys(&self) -> OrderByIter<'_> ⓘ
Information about the ORDER BY clause.
sourcepub fn num_of_order_by(&self) -> usize
pub fn num_of_order_by(&self) -> usize
Number of terms in the ORDER BY clause
pub fn constraint_usage(
&mut self,
constraint_idx: usize
) -> IndexConstraintUsage<'_>
sourcepub fn set_idx_num(&mut self, idx_num: c_int)
pub fn set_idx_num(&mut self, idx_num: c_int)
Number used to identify the index
sourcepub fn set_order_by_consumed(&mut self, order_by_consumed: bool)
pub fn set_order_by_consumed(&mut self, order_by_consumed: bool)
True if output is already ordered
sourcepub fn set_estimated_cost(&mut self, estimated_ost: f64)
pub fn set_estimated_cost(&mut self, estimated_ost: f64)
Estimated cost of using this index