#[non_exhaustive]pub enum ColumnEvolution<'a> {
AddColumn {
schema: Option<&'a str>,
table: &'a str,
column: &'a str,
data_type: &'a DataType,
},
WidenColumn {
schema: Option<&'a str>,
table: &'a str,
column: &'a str,
data_type: &'a DataType,
},
AddNestedField {
schema: Option<&'a str>,
table: &'a str,
column: &'a str,
field: &'a str,
data_type: &'a DataType,
},
}Expand description
One change to a table that already holds rows, handed to the dialect to spell.
The schema and table arrive unqualified and unquoted, because the dialect
knows how it qualifies and quotes them. The type arrives as a
DataType — Razeri’s own, so the dialect renders it the way it renders
every other column of that type, and the statement cannot disagree with the
CREATE that would have built the same column.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AddColumn
A column the table does not have yet, which accepts no value today.
Fields
WidenColumn
A column whose declared type now holds more than it held.
Fields
AddNestedField
A record column that gained a field, and gained nothing else.
Implementations§
Source§impl ColumnEvolution<'_>
impl ColumnEvolution<'_>
Trait Implementations§
Source§impl<'a> Clone for ColumnEvolution<'a>
impl<'a> Clone for ColumnEvolution<'a>
impl<'a> Copy for ColumnEvolution<'a>
Auto Trait Implementations§
impl<'a> Freeze for ColumnEvolution<'a>
impl<'a> RefUnwindSafe for ColumnEvolution<'a>
impl<'a> Send for ColumnEvolution<'a>
impl<'a> Sync for ColumnEvolution<'a>
impl<'a> Unpin for ColumnEvolution<'a>
impl<'a> UnsafeUnpin for ColumnEvolution<'a>
impl<'a> UnwindSafe for ColumnEvolution<'a>
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