Rindle docs and package mapSkip to main content

DdlActions

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.

Trait Implementations§

§

impl Debug for DdlActions

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for DdlActions

§

fn default() -> DdlActions

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,