pub struct CreateTable {
pub name: Slice,
pub columns: Slice,
pub query: QueryRef,
pub if_not_exists: bool,
pub or_replace: bool,
pub temporary: bool,
}Expand description
CREATE TABLE name (columns) or CREATE TABLE name AS query.
Exactly one of columns and query says what the table is. A column list is the ordinary form
and query is CREATE TABLE AS, where the columns come from what the query produced and the
only thing the syntax contributes is optionally renaming them, which is columns with the types
left as NONE.
Fields§
§name: SliceThe table name, as a run of Slice parts, outermost first.
columns: SliceThe column definitions, as a run of ColumnDef.
query: QueryRefThe AS query, or NONE.
if_not_exists: boolWhether IF NOT EXISTS was written.
or_replace: boolWhether OR REPLACE was written.
temporary: boolWhether TEMP or TEMPORARY was written.
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 moreimpl Copy for CreateTable
Source§impl Debug for CreateTable
impl Debug for CreateTable
impl Eq for CreateTable
Source§impl PartialEq for CreateTable
impl PartialEq for CreateTable
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