pub struct IndexInfo {
pub type: String,
pub index_name: String,
pub table_name: String,
pub unique: bool,
pub origin: String,
pub partial: i32,
pub columns: Vec<String>,
}
Available on crate features
sqlite
and def
only.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: String
Is it a SQLindex
index_name: String
table_name: String
unique: bool
origin: String
partial: i32
columns: Vec<String>
Implementations
sourceimpl IndexInfo
impl IndexInfo
sourcepub fn write(&self) -> IndexCreateStatement
pub fn write(&self) -> IndexCreateStatement
Write all the discovered index into a IndexCreateStatement
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more