Struct DdlActions
pub struct DdlActions {
pub dropped_tables: Vec<String>,
pub altered_tables: Vec<String>,
pub created_indexes: Vec<String>,
pub dropped_indexes: Vec<String>,
}Expand description
The destructive DDL actions observed so far (design 227, third review pass): which
main-schema tables were DROPPED or ALTERED, reported by SQLite’s authorizer as each
statement was prepared. This is the real parser’s verdict, so comments between tokens,
script-valued slots, quoting, and schema-qualified names are all handled by construction —
the lexical scanners this replaced were evadable by each in turn.
Fields§
§dropped_tables: Vec<String>Tables removed by DROP TABLE (SQLITE_DROP_TABLE), in observation order; duplicates
possible when one entry drops and re-drops through a recreate — consumers are idempotent.
altered_tables: Vec<String>Tables reshaped by any ALTER TABLE form on main (SQLITE_ALTER_TABLE). The
authorizer does not distinguish ADD/DROP/RENAME COLUMN; any ALTER of a user table is
bounce-worthy on the follower (an additive ALTER already bounces via the end-state
reshape diff, so the coarseness costs nothing new).
created_indexes: Vec<String>Indexes created by an explicit CREATE [UNIQUE] INDEX (SQLITE_CREATE_INDEX, main
schema; sqlite_autoindex_* internals excluded). Exact names from the parser — a
qualified or comment-laden spelling cannot desynchronize the desired-index registry
(design 227 fifth review pass).
dropped_indexes: Vec<String>Indexes removed by DROP INDEX (SQLITE_DROP_INDEX, main schema) — exact names.