pub struct CreateStatement {
pub object_type: CreateObjectType,
pub name: Identifier,
pub if_not_exists: bool,
pub body: CreateBody,
pub span: Range<usize>,
}Expand description
Represents a CREATE statement.
Fields§
§object_type: CreateObjectTypeThe type of object to create (TABLE, VIEW, etc.).
name: IdentifierThe name of the object.
if_not_exists: boolWhether to include IF NOT EXISTS.
body: CreateBodyThe body of the CREATE statement.
span: Range<usize>The span of the CREATE statement.
Trait Implementations§
Source§impl AsDocument for CreateStatement
Available on crate feature oak-pretty-print only.
impl AsDocument for CreateStatement
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
Source§impl Clone for CreateStatement
impl Clone for CreateStatement
Source§fn clone(&self) -> CreateStatement
fn clone(&self) -> CreateStatement
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 CreateStatement
impl Debug for CreateStatement
Source§impl<'de> Deserialize<'de> for CreateStatement
impl<'de> Deserialize<'de> for CreateStatement
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
Source§impl Serialize for CreateStatement
impl Serialize for CreateStatement
Source§impl ToSource for CreateStatement
impl ToSource for CreateStatement
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
Auto Trait Implementations§
impl Freeze for CreateStatement
impl RefUnwindSafe for CreateStatement
impl Send for CreateStatement
impl Sync for CreateStatement
impl Unpin for CreateStatement
impl UnsafeUnpin for CreateStatement
impl UnwindSafe for CreateStatement
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