pub enum SqlTableSchemaEvent {
Create {
temporary: bool,
if_not_exists: bool,
columns_complete: bool,
source_order: Vec<usize>,
line: usize,
position_column: usize,
table: String,
relation_key: String,
unqualified_table: String,
columns: Vec<SqlColumnMetadata>,
},
AddColumn {
table_if_exists: bool,
if_not_exists: bool,
source_order: Vec<usize>,
line: usize,
position_column: usize,
table: String,
relation_key: String,
unqualified_table: String,
column: SqlColumnMetadata,
},
Drop {
source_order: Vec<usize>,
line: usize,
position_column: usize,
table: String,
relation_key: String,
unqualified_table: String,
},
}Expand description
Ordered table catalog changes, retaining qualified and decoded last-component identities.
Variants§
Create
Fields
§
columns_complete: boolFalse for AS SELECT, LIKE, CLONE, INHERITS, and partitions, whose
physical column order is not fully enumerated by columns.
§
columns: Vec<SqlColumnMetadata>AddColumn
Fields
§
column: SqlColumnMetadataDrop
Implementations§
Source§impl SqlTableSchemaEvent
impl SqlTableSchemaEvent
Sourcepub fn precedes_write(&self, line: usize, column: usize) -> bool
pub fn precedes_write(&self, line: usize, column: usize) -> bool
Whether this statement is treated as running before a write on line. Without
columns, a same-line DROP is assumed to follow the write so the write stays checked.
Trait Implementations§
Source§impl Clone for SqlTableSchemaEvent
impl Clone for SqlTableSchemaEvent
Source§fn clone(&self) -> SqlTableSchemaEvent
fn clone(&self) -> SqlTableSchemaEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqlTableSchemaEvent
impl Debug for SqlTableSchemaEvent
impl Eq for SqlTableSchemaEvent
Source§impl PartialEq for SqlTableSchemaEvent
impl PartialEq for SqlTableSchemaEvent
impl StructuralPartialEq for SqlTableSchemaEvent
Auto Trait Implementations§
impl Forget for SqlTableSchemaEvent
impl Freeze for SqlTableSchemaEventwhere
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SqlColumnMetadata>: Freeze,
PhantomData<String>: Freeze,
impl Move for SqlTableSchemaEvent
impl RefUnwindSafe for SqlTableSchemaEvent
impl Send for SqlTableSchemaEventwhere
RawVecInner: Send,
impl Sync for SqlTableSchemaEventwhere
RawVecInner: Sync,
impl Unpin for SqlTableSchemaEvent
impl UnsafeUnpin for SqlTableSchemaEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SqlColumnMetadata>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SqlTableSchemaEventwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more