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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IndexInfo
impl !Send for IndexInfo
impl !Sync for IndexInfo
impl Unpin for IndexInfo
impl UnwindSafe for IndexInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more