pub struct CreateTableStmt {
pub temporary: bool,
pub if_not_exists: bool,
pub table_name: String,
pub columns: Vec<ColumnDef>,
pub table_constraints: Vec<TableConstraint>,
pub table_options: Vec<TableOption>,
pub quoted: bool,
pub as_query: Option<Box<SelectStmt>>,
pub without_rowid: bool,
}Expand description
CREATE TABLE statement
Fields§
§temporary: boolIf true, this is a temporary table (CREATE TEMP TABLE) Temporary tables are stored in a separate “temp” schema and are not persisted.
if_not_exists: boolIf true, don’t error if the table already exists
table_name: StringTable name (possibly qualified as schema.table)
columns: Vec<ColumnDef>§table_constraints: Vec<TableConstraint>§table_options: Vec<TableOption>§quoted: boolWhether the table name was quoted (delimited) in the original SQL.
as_query: Option<Box<SelectStmt>>Optional AS SELECT query for CREATE TABLE … AS SELECT syntax When present, columns are derived from the query result
without_rowid: boolIf true, table was created with WITHOUT ROWID clause (SQLite compatibility). WITHOUT ROWID tables have no implicit rowid column and last_insert_rowid() is not updated when inserting into them.
Trait Implementations§
Source§impl Clone for CreateTableStmt
impl Clone for CreateTableStmt
Source§fn clone(&self) -> CreateTableStmt
fn clone(&self) -> CreateTableStmt
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 CreateTableStmt
impl Debug for CreateTableStmt
Source§impl PartialEq for CreateTableStmt
impl PartialEq for CreateTableStmt
impl StructuralPartialEq for CreateTableStmt
Auto Trait Implementations§
impl Freeze for CreateTableStmt
impl RefUnwindSafe for CreateTableStmt
impl Send for CreateTableStmt
impl Sync for CreateTableStmt
impl Unpin for CreateTableStmt
impl UnwindSafe for CreateTableStmt
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