Struct DdlStep
pub struct DdlStep {
pub sql: String,
pub dropped_tables: Vec<String>,
pub altered_tables: Vec<String>,
pub created_indexes: Vec<String>,
pub dropped_indexes: Vec<String>,
}Expand description
One executed statement of a ddl entry plus the destructive actions the authorizer
attributed to it. Order is the EXECUTION order — load-bearing for the desired-index
bookkeeping (design 227 fourth review pass): in DROP TABLE t; CREATE TABLE t; CREATE INDEX ix ON t the index belongs to the final table, so its recording must follow the drop’s
purge, not race it.
Fields§
§sql: StringThe single SQL statement this step executed (script-valued slots are split at real statement boundaries before execution).
dropped_tables: Vec<String>Tables this step dropped (SQLITE_DROP_TABLE).
altered_tables: Vec<String>main-schema tables this step altered (SQLITE_ALTER_TABLE).
created_indexes: Vec<String>Indexes this step created explicitly (SQLITE_CREATE_INDEX, exact names).
dropped_indexes: Vec<String>Indexes this step dropped (SQLITE_DROP_INDEX, exact names).
Trait Implementations§
§impl<'de> Deserialize<'de> for DdlStep
impl<'de> Deserialize<'de> for DdlStep
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DdlStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DdlStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for DdlStep
impl Serialize for DdlStep
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DdlStep
impl RefUnwindSafe for DdlStep
impl Send for DdlStep
impl Sync for DdlStep
impl Unpin for DdlStep
impl UnsafeUnpin for DdlStep
impl UnwindSafe for DdlStep
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