Struct bison_orm::builder::ColumnBuilder [−][src]
The builder for column definitions in table creation
Implementations
impl ColumnBuilder
[src]
pub fn new(name: impl Into<String>) -> Self
[src]
Returns a new ColumnBuilder
with the given name.
pub fn typ(&mut self, typ: impl Into<String>) -> &mut Self
[src]
Sets the column type.
pub fn attr(&mut self, attr: &str) -> &mut Self
[src]
Sets an extra attribute for the column, like UNIQUE
or AUTO_INCREMENT
.
pub fn constraint(
&mut self,
foreign: impl Into<Option<ForeignKeyBuilder>>
) -> &mut Self
[src]
&mut self,
foreign: impl Into<Option<ForeignKeyBuilder>>
) -> &mut Self
Adds the CONSTRAINT
clause to the ADD COLUMN
statement in SQLite.
pub fn check<O, C>(&mut self, check: O) -> &mut Self where
O: Into<Option<C>>,
C: Fn(&mut BaseBuilder) + 'static,
[src]
O: Into<Option<C>>,
C: Fn(&mut BaseBuilder) + 'static,
Adds a CHECK clause to the ADD COLUMN statement.
Trait Implementations
impl Builder for ColumnBuilder
[src]
impl Default for ColumnBuilder
[src]
fn default() -> ColumnBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ColumnBuilder
[src]
impl !Send for ColumnBuilder
[src]
impl !Sync for ColumnBuilder
[src]
impl Unpin for ColumnBuilder
[src]
impl !UnwindSafe for ColumnBuilder
[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>,