pub struct SqliteRebuildTarget {
pub table: String,
pub old_columns: Vec<String>,
pub new_columns: Vec<String>,
pub recreated_indexes: HashSet<String>,
}Expand description
SQLite rebuild target for op: the table being dropped plus the column
sets before/after and the index names the rebuild itself recreates.
None when op does not rebuild a table on SQLite (in-place alters,
native renames, drops). The executor uses this to preserve triggers and
hand-made indexes from sqlite_master across the drop/create cycle.
Fields§
§table: StringTable dropped and recreated by the rebuild.
old_columns: Vec<String>Column names before the op.
new_columns: Vec<String>Column names after the op.
recreated_indexes: HashSet<String>Index names the rebuild’s own CREATE INDEX statements recreate.
Auto Trait Implementations§
impl Freeze for SqliteRebuildTarget
impl RefUnwindSafe for SqliteRebuildTarget
impl Send for SqliteRebuildTarget
impl Sync for SqliteRebuildTarget
impl Unpin for SqliteRebuildTarget
impl UnsafeUnpin for SqliteRebuildTarget
impl UnwindSafe for SqliteRebuildTarget
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