pub struct IndexInfo(/* private fields */);Available on crate feature
vtab only.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_and_usages(&mut self) -> IndexConstraintAndUsageIter<'_> ⓘ
pub fn constraints_and_usages(&mut self) -> IndexConstraintAndUsageIter<'_> ⓘ
Iterate on index constraint and its associated usage.
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
Sourcepub fn constraint_usage(
&mut self,
constraint_idx: usize,
) -> IndexConstraintUsage<'_>
pub fn constraint_usage( &mut self, constraint_idx: usize, ) -> IndexConstraintUsage<'_>
Information about what parameters to pass to VTabCursor::filter.
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_idx_str(&mut self, idx_str: &str)
pub fn set_idx_str(&mut self, idx_str: &str)
String 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
Sourcepub fn set_estimated_rows(&mut self, estimated_rows: i64)
pub fn set_estimated_rows(&mut self, estimated_rows: i64)
Estimated number of rows returned.
Sourcepub fn set_idx_flags(&mut self, flags: IndexFlags)
pub fn set_idx_flags(&mut self, flags: IndexFlags)
Mask of SQLITE_INDEX_SCAN_* flags.