pub struct ParsedCreateTable {
pub table_name: String,
pub columns: NonEmptyVec<ParsedColumn>,
pub primary_key: Vec<String>,
pub if_not_exists: bool,
}Expand description
Parsed CREATE TABLE statement.
columns is a NonEmptyVec — an empty column list (e.g. from the
sqlparser-accepted but semantically meaningless CREATE TABLE#USER)
cannot be constructed. Regression: fuzz_sql_parser surfaced 12 crashes
in the first EPYC nightly by feeding such inputs; the type now rejects
them at construction.
Fields§
§table_name: String§columns: NonEmptyVec<ParsedColumn>§primary_key: Vec<String>§if_not_exists: boolWhen true (from CREATE TABLE IF NOT EXISTS), creating a table that
already exists is a no-op rather than an error.
Trait Implementations§
Source§impl Clone for ParsedCreateTable
impl Clone for ParsedCreateTable
Source§fn clone(&self) -> ParsedCreateTable
fn clone(&self) -> ParsedCreateTable
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 moreAuto Trait Implementations§
impl Freeze for ParsedCreateTable
impl RefUnwindSafe for ParsedCreateTable
impl Send for ParsedCreateTable
impl Sync for ParsedCreateTable
impl Unpin for ParsedCreateTable
impl UnsafeUnpin for ParsedCreateTable
impl UnwindSafe for ParsedCreateTable
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