Struct sql_from_models_parser::ast::CreateTable
source · pub struct CreateTable {Show 16 fields
pub or_replace: bool,
pub temporary: bool,
pub external: bool,
pub if_not_exists: bool,
pub name: ObjectName,
pub columns: Vec<ColumnDef>,
pub constraints: Vec<TableConstraint>,
pub hive_distribution: HiveDistributionStyle,
pub hive_formats: Option<HiveFormat>,
pub table_properties: Vec<SqlOption>,
pub with_options: Vec<SqlOption>,
pub file_format: Option<FileFormat>,
pub location: Option<String>,
pub query: Option<Box<Query>>,
pub without_rowid: bool,
pub like: Option<ObjectName>,
}
Expand description
CREATE TABLE
Fields§
§or_replace: bool
§temporary: bool
§external: bool
§if_not_exists: bool
§name: ObjectName
Table name
columns: Vec<ColumnDef>
Optional schema
constraints: Vec<TableConstraint>
§hive_distribution: HiveDistributionStyle
§hive_formats: Option<HiveFormat>
§table_properties: Vec<SqlOption>
§with_options: Vec<SqlOption>
§file_format: Option<FileFormat>
§location: Option<String>
§query: Option<Box<Query>>
§without_rowid: bool
§like: Option<ObjectName>
Trait Implementations§
source§impl Clone for CreateTable
impl Clone for CreateTable
source§fn clone(&self) -> CreateTable
fn clone(&self) -> CreateTable
Returns a copy 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 CreateTable
impl Debug for CreateTable
source§impl Display for CreateTable
impl Display for CreateTable
source§impl Hash for CreateTable
impl Hash for CreateTable
source§impl PartialEq for CreateTable
impl PartialEq for CreateTable
source§fn eq(&self, other: &CreateTable) -> bool
fn eq(&self, other: &CreateTable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CreateTable
impl StructuralPartialEq for CreateTable
Auto Trait Implementations§
impl RefUnwindSafe for CreateTable
impl Send for CreateTable
impl Sync for CreateTable
impl Unpin 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