pub enum CreateBody {
Table {
columns: Vec<ColumnDefinition>,
span: Range<usize>,
},
View {
query: Box<SelectStatement>,
span: Range<usize>,
},
Index {
table_name: TableName,
columns: Vec<Identifier>,
unique: bool,
span: Range<usize>,
},
Database {
span: Range<usize>,
},
}Expand description
Represents the body of a CREATE statement.
Variants§
Table
A TABLE body with column definitions.
Fields
§
columns: Vec<ColumnDefinition>The column definitions.
View
A VIEW body with a query.
Fields
§
query: Box<SelectStatement>The query for the view.
Index
An INDEX body.
Fields
§
columns: Vec<Identifier>The columns to index.
Database
A DATABASE body.
Trait Implementations§
Source§impl Clone for CreateBody
impl Clone for CreateBody
Source§fn clone(&self) -> CreateBody
fn clone(&self) -> CreateBody
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 CreateBody
impl Debug for CreateBody
Source§impl<'de> Deserialize<'de> for CreateBody
impl<'de> Deserialize<'de> for CreateBody
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
Auto Trait Implementations§
impl Freeze for CreateBody
impl RefUnwindSafe for CreateBody
impl Send for CreateBody
impl Sync for CreateBody
impl Unpin for CreateBody
impl UnsafeUnpin for CreateBody
impl UnwindSafe for CreateBody
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