Struct IndexInfo
pub struct IndexInfo {
pub type: String,
pub index_name: String,
pub table_name: String,
pub unique: bool,
pub origin: String,
pub partial: i64,
pub columns: Vec<String>,
}Expand description
Maps the index and all columns in the index which is the result of queries
PRAGMA index_list(table_name) and
SELECT * FROM sqlite_master where name = 'index_name'
Fields§
§type: StringIs it a SQLindex
index_name: String§table_name: String§unique: bool§origin: String§partial: i64§columns: Vec<String>Implementations§
§impl IndexInfo
impl IndexInfo
pub fn write(&self) -> IndexCreateStatement
pub fn write(&self) -> IndexCreateStatement
Write all the discovered index into a IndexCreateStatement
Trait Implementations§
impl StructuralPartialEq for IndexInfo
Auto Trait Implementations§
impl Freeze for IndexInfo
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