pub enum SpannerAlterTable {
AddColumn {
table: String,
column: SpannerColumn,
},
DropColumn {
table: String,
column: String,
},
AlterColumn {
table: String,
column: String,
new_type: Option<String>,
set_not_null: Option<bool>,
set_default: Option<String>,
drop_default: bool,
},
AddForeignKey {
table: String,
constraint_name: String,
columns: Vec<String>,
ref_table: String,
ref_columns: Vec<String>,
on_delete: Option<String>,
},
DropConstraint {
table: String,
constraint_name: String,
},
}Expand description
Builder for ALTER TABLE statements in Spanner DDL format
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SpannerAlterTable
impl Clone for SpannerAlterTable
Source§fn clone(&self) -> SpannerAlterTable
fn clone(&self) -> SpannerAlterTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SpannerAlterTable
impl RefUnwindSafe for SpannerAlterTable
impl Send for SpannerAlterTable
impl Sync for SpannerAlterTable
impl Unpin for SpannerAlterTable
impl UnsafeUnpin for SpannerAlterTable
impl UnwindSafe for SpannerAlterTable
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