Struct bison_orm::builder::ForeignKeyBuilder [−][src]
The builder for the foreign-key constraint clause.
Implementations
impl ForeignKeyBuilder
[src]
pub fn new() -> Self
[src]
Create a builder for the foreign-key constraint clause in create/alter table statements.
pub fn symbol(&mut self, symbol: impl Into<String>) -> &mut Self
[src]
Sets the symbol of the foreign key.
pub fn column(&mut self, column: impl Into<String>) -> &mut Self
[src]
Sets the columns of the foreign key in the source table.
pub fn reference(&mut self, reference: ReferenceBuilder) -> &mut Self
[src]
Sets the reference clause.
pub fn on_delete(&mut self, action: impl Into<String>) -> &mut Self
[src]
Sets the on delete action for this constraint.
pub fn on_update(&mut self, action: impl Into<String>) -> &mut Self
[src]
Sets the on update action for this constraint.
Trait Implementations
impl Builder for ForeignKeyBuilder
[src]
impl Default for ForeignKeyBuilder
[src]
fn default() -> ForeignKeyBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ForeignKeyBuilder
[src]
impl Send for ForeignKeyBuilder
[src]
impl Sync for ForeignKeyBuilder
[src]
impl Unpin for ForeignKeyBuilder
[src]
impl UnwindSafe for ForeignKeyBuilder
[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>,