pub struct TableInfo {
pub strict: bool,
pub without_rowid: bool,
pub rowid_alias: Option<String>,
pub ignores: bool,
pub ignores_null: bool,
pub replaces: bool,
pub columns: Vec<ColumnInfo>,
pub unique_keys: Vec<Vec<String>>,
}Fields§
§strict: bool§without_rowid: boolThe table is WITHOUT ROWID: its primary key is its rows’ key (libSQL’s vector_top_k returns it).
rowid_alias: Option<String>§ignores: boolA NOT NULL, UNIQUE or PRIMARY KEY of the table is declared ON CONFLICT IGNORE: a write that breaks it, with no OR clause of its own, skips the row.
ignores_null: boolA NOT NULL of the table is declared ON CONFLICT IGNORE: a write of NULL to it, with no OR clause of its own, skips the row.
replaces: boolThe PRIMARY KEY or a UNIQUE of the table is declared ON CONFLICT REPLACE: a write that breaks it, with no OR clause of its own, deletes the row it conflicts with.
columns: Vec<ColumnInfo>§unique_keys: Vec<Vec<String>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TableInfo
impl<'de> Deserialize<'de> for TableInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for TableInfo
impl Freeze for TableInfo
impl Move for TableInfo
impl RefUnwindSafe for TableInfo
impl Send for TableInfo
impl Sync for TableInfo
impl Unpin for TableInfo
impl UnsafeUnpin for TableInfo
impl UnwindSafe for TableInfo
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