Struct sea_schema::sqlite::def::IndexInfo
source ยท 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ยง
sourceยงimpl 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ยง
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