Struct sqlite_loadable::table::IndexInfo  
source · pub struct IndexInfo { /* private fields */ }Expand description
Wraps the raw sqlite3_index_info C struct, which represents the possible constraints and outputs the xBestIndex method should use and return. https://www.sqlite.org/c3ref/index_info.html
Implementations§
source§impl IndexInfo
 
impl IndexInfo
pub fn constraints(&self) -> Vec<Constraint>
pub fn order_bys(&self) -> Vec<OrderBy>
pub fn set_idxnum(&mut self, value: i32)
pub fn set_idxstr(&mut self, value: &str) -> Result<()>
pub fn set_estimated_rows(&mut self, value: i64)
sourcepub fn set_estimated_cost(&mut self, value: f64)
 
pub fn set_estimated_cost(&mut self, value: f64)
“The estimatedCost field should be set to the estimated number of disk access operations required to execute this query against the virtual table.” https://www.sqlite.org/vtab.html#outputs
pub fn columns_used(&self) -> u64
pub fn distinct(&self) -> i32
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