Struct bison_orm::builder::AlterTableBuilder [−][src]
A query builder for ALTER TABLE
statement.
Implementations
impl AlterTableBuilder
[src]
pub fn new(name: impl Into<String>) -> Self
[src]
Creates a query builder for the ALTER TABLE
statement.
pub fn add_column(&mut self, mut column: ColumnBuilder) -> &mut Self
[src]
Appends the ADD COLUMN
clause to the given ALTER TABLE
statement.
pub fn modify_column(&mut self, mut column: ColumnBuilder) -> &mut Self
[src]
Appends the MODIFY/ALTER COLUMN
clause to the given ALTER TABLE
statement.
pub fn rename_column(
&mut self,
old: impl Into<String>,
new: impl Into<String>
) -> &mut Self
[src]
&mut self,
old: impl Into<String>,
new: impl Into<String>
) -> &mut Self
Appends the RENAME COLUMN
clause to the given ALTER TABLE
statement.
pub fn drop_column(&mut self, mut column: ColumnBuilder) -> &mut Self
[src]
Appends the DROP COLUMN
clause to the given ALTER TABLE
statement.
pub fn rename_index(
&mut self,
old: impl Into<String>,
new: impl Into<String>
) -> &mut Self
[src]
&mut self,
old: impl Into<String>,
new: impl Into<String>
) -> &mut Self
Appends the RENAME INDEX
clause to the given ALTER TABLE
statement.
pub fn drop_index(&mut self, name: impl AsRef<str>) -> &mut Self
[src]
Appends the DROP INDEX
clause to the given ALTER TABLE
statement.
pub fn add_index(&mut self, index: IndexBuilder) -> &mut Self
[src]
Appends the ADD INDEX
clause to the given ALTER TABLE
statement.
pub fn add_foreign_key(&mut self, mut fk: ForeignKeyBuilder) -> &mut Self
[src]
Adds a foreign key constraint to the given ALTER TABLE
statement.
pub fn drop_constraint(&mut self, ident: impl AsRef<str>) -> &mut Self
[src]
Appends the DROP CONSTRAINT
clause to the given ALTER TABLE
statement.
pub fn drop_foreign_key(&mut self, ident: impl AsRef<str>) -> &mut Self
[src]
Appends the DROP FOREIGN KEY
clause to the given ALTER TABLE
statement.
Trait Implementations
impl Builder for AlterTableBuilder
[src]
impl Default for AlterTableBuilder
[src]
fn default() -> AlterTableBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for AlterTableBuilder
[src]
impl Send for AlterTableBuilder
[src]
impl Sync for AlterTableBuilder
[src]
impl Unpin for AlterTableBuilder
[src]
impl UnwindSafe for AlterTableBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> BuilderExt for T where
T: ChildBuilder,
[src]
T: ChildBuilder,
pub fn quote(&Self, impl Into<String>) -> String
[src]
pub fn schema(&mut Self, impl AsRef<str>) -> &mut T
[src]
pub fn ident(&mut Self, impl AsRef<str>) -> &mut T
[src]
pub fn ident_comma<I, S>(&mut Self, I) -> &mut T where
I: IntoIterator<Item = S>,
S: AsRef<str>,
[src]
I: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn op(&mut Self, Op) -> &mut T
[src]
pub fn arg(&mut Self, impl ToString) -> &mut T
[src]
pub fn join(&mut Self, impl Builder) -> &mut T
[src]
pub fn join_many<I, B>(&mut Self, I) -> &mut T where
I: IntoIterator<Item = B>,
B: Builder,
[src]
I: IntoIterator<Item = B>,
B: Builder,
pub fn nested(&mut Self, impl FnOnce(&mut BaseBuilder)) -> &mut T
[src]
pub fn push_str(&mut Self, impl AsRef<str>) -> &mut T
[src]
pub fn push(&mut Self, char) -> &mut T
[src]
pub fn prefix(&mut Self, impl AsRef<str>) -> &mut T
[src]
pub fn comma(&mut Self) -> &mut T
[src]
pub fn pad(&mut Self) -> &mut T
[src]
pub fn is_ident(&Self, impl AsRef<str>) -> bool
[src]
pub fn dialect(&Self) -> &Dialect
[src]
pub fn set_dialect(&mut Self, Dialect) -> &mut T
[src]
pub fn total(&Self) -> usize
[src]
pub fn set_total(&mut Self, usize) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,