pub enum CreateTableBody {
ColumnsAndConstraints {
columns: Vec<ColumnDefinition>,
constraints: Vec<NamedTableConstraint>,
options: TableOptions,
},
AsSelect(Select),
}Expand description
CREATE TABLE body
Variants§
ColumnsAndConstraints
columns and constraints
Fields
§
columns: Vec<ColumnDefinition>table column definitions
§
constraints: Vec<NamedTableConstraint>table constraints
§
options: TableOptionstable options
AsSelect(Select)
AS select
Implementations§
Source§impl CreateTableBody
impl CreateTableBody
Sourcepub fn has_primary_key(&self) -> bool
pub fn has_primary_key(&self) -> bool
explicit primary key constraint ?
Trait Implementations§
Source§impl Clone for CreateTableBody
impl Clone for CreateTableBody
Source§fn clone(&self) -> CreateTableBody
fn clone(&self) -> CreateTableBody
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 CreateTableBody
impl Debug for CreateTableBody
Source§impl Display for CreateTableBody
impl Display for CreateTableBody
impl Eq for CreateTableBody
Source§impl PartialEq for CreateTableBody
impl PartialEq for CreateTableBody
impl StructuralPartialEq for CreateTableBody
Source§impl ToTokens for CreateTableBody
impl ToTokens for CreateTableBody
Source§fn to_tokens<S: TokenStream + ?Sized, C: ToSqlContext>(
&self,
s: &mut S,
context: &C,
) -> Result<(), S::Error>
fn to_tokens<S: TokenStream + ?Sized, C: ToSqlContext>( &self, s: &mut S, context: &C, ) -> Result<(), S::Error>
Send token(s) to the specified stream with context
fn displayer<'a, 'b, C: ToSqlContext>(
&'b self,
ctx: &'a C,
) -> SqlDisplayer<'a, 'b, C, Self>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for CreateTableBody
impl RefUnwindSafe for CreateTableBody
impl Send for CreateTableBody
impl Sync for CreateTableBody
impl Unpin for CreateTableBody
impl UnsafeUnpin for CreateTableBody
impl UnwindSafe for CreateTableBody
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