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