pub struct AlterTableBuilder { /* private fields */ }Implementations§
Source§impl AlterTableBuilder
impl AlterTableBuilder
pub fn add_column(self, column: Column) -> Self
pub fn modify_column(self, column: Column) -> Self
pub fn drop_column(self, column: impl Into<String>) -> Self
pub fn rename_column( self, from: impl Into<String>, to: impl Into<String>, ) -> Self
pub fn rename_table(self, to: impl Into<String>) -> Self
pub fn add_constraint(self, constraint: ConstraintDefinitionIr) -> Self
pub fn drop_constraint(self, name: impl Into<String>, if_exists: bool) -> Self
pub fn execute<S: OrmSession>( self, session: S, ) -> Result<S::CommandOutput, BuilderExecutionError<S::Error>>
pub async fn execute_async<S: AsyncOrmSession>( self, session: &mut S, ) -> Result<S::CommandOutput, BuilderExecutionError<S::Error>>
Trait Implementations§
Source§impl Clone for AlterTableBuilder
impl Clone for AlterTableBuilder
Source§fn clone(&self) -> AlterTableBuilder
fn clone(&self) -> AlterTableBuilder
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 AlterTableBuilder
impl Debug for AlterTableBuilder
Source§impl OrmBuilder for AlterTableBuilder
impl OrmBuilder for AlterTableBuilder
fn document(&self) -> Result<IrDocument, BuilderError>
fn to_json(&self) -> Result<String, BuilderJsonError>
fn to_sql(&self) -> Result<CompiledStatement, BuilderSqlError>
Source§impl PartialEq for AlterTableBuilder
impl PartialEq for AlterTableBuilder
impl StructuralPartialEq for AlterTableBuilder
Auto Trait Implementations§
impl Freeze for AlterTableBuilder
impl RefUnwindSafe for AlterTableBuilder
impl Send for AlterTableBuilder
impl Sync for AlterTableBuilder
impl Unpin for AlterTableBuilder
impl UnsafeUnpin for AlterTableBuilder
impl UnwindSafe for AlterTableBuilder
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