pub struct CreateTableStatement {
pub temporary: bool,
pub if_not_exists: bool,
pub table: Table,
pub create_type: CreateTableType,
}
Expand description
CreateTableStatement MySQL Doc
- Simple Create:
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name
(create_definition,...)
[table_options]
[partition_options]
- Create as Select:
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name
[(create_definition,...)]
[table_options]
[partition_options]
[IGNORE | REPLACE]
[AS] query_expression
- Create Like:
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name
{ LIKE old_tbl_name | (LIKE old_tbl_name) }
Fields§
§temporary: bool
[TEMPORARY]
part
if_not_exists: bool
[IF NOT EXISTS]
part
table: Table
tbl_name
part
create_type: CreateTableType
simple definition | as select definition | like other table definition
Implementations§
Source§impl CreateTableStatement
impl CreateTableStatement
pub fn parse( i: &str, ) -> IResult<&str, CreateTableStatement, ParseSQLError<&str>>
Trait Implementations§
Source§impl Clone for CreateTableStatement
impl Clone for CreateTableStatement
Source§fn clone(&self) -> CreateTableStatement
fn clone(&self) -> CreateTableStatement
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateTableStatement
impl Debug for CreateTableStatement
Source§impl<'de> Deserialize<'de> for CreateTableStatement
impl<'de> Deserialize<'de> for CreateTableStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CreateTableStatement
impl Display for CreateTableStatement
Source§impl Hash for CreateTableStatement
impl Hash for CreateTableStatement
Source§impl PartialEq for CreateTableStatement
impl PartialEq for CreateTableStatement
Source§impl Serialize for CreateTableStatement
impl Serialize for CreateTableStatement
impl Eq for CreateTableStatement
impl StructuralPartialEq for CreateTableStatement
Auto Trait Implementations§
impl Freeze for CreateTableStatement
impl RefUnwindSafe for CreateTableStatement
impl Send for CreateTableStatement
impl Sync for CreateTableStatement
impl Unpin for CreateTableStatement
impl UnwindSafe for CreateTableStatement
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