pub struct CreateTable {
pub if_not_exists: bool,
pub name: String,
pub schema: Option<String>,
pub columns: Vec<ColumnDef>,
pub constraints: Vec<TableConstraint>,
pub without_rowid: bool,
pub strict: bool,
pub as_select: Option<Box<Select>>,
}Expand description
A CREATE TABLE statement.
Fields§
§if_not_exists: boolIF NOT EXISTS?
name: StringTable name.
schema: Option<String>A schema. qualifier (CREATE TABLE aux.t), if any.
columns: Vec<ColumnDef>Column definitions.
constraints: Vec<TableConstraint>Table-level constraints (raw, for now).
without_rowid: boolWITHOUT ROWID?
strict: boolSTRICT? A strict table restricts column types to the six rigid types
(INT/INTEGER/REAL/TEXT/BLOB/ANY) and type-checks every stored
value against its column’s declared type.
as_select: Option<Box<Select>>CREATE TABLE … AS SELECT … — the table’s columns and rows come from the
query. When present, columns/constraints are empty until materialized.
Trait Implementations§
Source§impl Clone for CreateTable
impl Clone for CreateTable
Source§fn clone(&self) -> CreateTable
fn clone(&self) -> CreateTable
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 CreateTable
impl Debug for CreateTable
Source§impl PartialEq for CreateTable
impl PartialEq for CreateTable
Source§fn eq(&self, other: &CreateTable) -> bool
fn eq(&self, other: &CreateTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateTable
Auto Trait Implementations§
impl Freeze for CreateTable
impl RefUnwindSafe for CreateTable
impl Send for CreateTable
impl Sync for CreateTable
impl Unpin for CreateTable
impl UnsafeUnpin for CreateTable
impl UnwindSafe for CreateTable
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