pub struct SQLAlterTableBuilder {
pub table: String,
pub operations: Vec<SQLAlterOperation>,
}Fields§
§table: String§operations: Vec<SQLAlterOperation>Implementations§
Source§impl SQLAlterTableBuilder
impl SQLAlterTableBuilder
pub fn new(table: impl Into<String>) -> Self
pub fn add_column(self, col: SQLColumnDef) -> Self
pub fn drop_column(self, name: impl Into<String>) -> Self
pub fn rename_column( self, from: impl Into<String>, to: impl Into<String>, ) -> Self
pub fn build(&self, dialect: &SQLDialect) -> Vec<String>
Trait Implementations§
Source§impl Clone for SQLAlterTableBuilder
impl Clone for SQLAlterTableBuilder
Source§fn clone(&self) -> SQLAlterTableBuilder
fn clone(&self) -> SQLAlterTableBuilder
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 SQLAlterTableBuilder
impl RefUnwindSafe for SQLAlterTableBuilder
impl Send for SQLAlterTableBuilder
impl Sync for SQLAlterTableBuilder
impl Unpin for SQLAlterTableBuilder
impl UnsafeUnpin for SQLAlterTableBuilder
impl UnwindSafe for SQLAlterTableBuilder
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