pub struct CreateQuery {
pub table_name: String,
pub columns: Vec<ParsedColumn>,
pub if_not_exists: bool,
}Expand description
The following structure represents a CREATE TABLE query already parsed
and broken down into name and a Vector of ParsedColumn metadata
Fields§
§table_name: Stringname of table after parking and tokenizing of query
columns: Vec<ParsedColumn>Vector of ParsedColumn type with column metadata information
if_not_exists: booltrue when the statement was CREATE TABLE IF NOT EXISTS ….
When set, re-creating an existing table is a no-op rather than
an error — matching CREATE INDEX IF NOT EXISTS and SQLite.
Implementations§
Source§impl CreateQuery
impl CreateQuery
pub fn new(statement: &Statement) -> Result<CreateQuery>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateQuery
impl RefUnwindSafe for CreateQuery
impl Send for CreateQuery
impl Sync for CreateQuery
impl Unpin for CreateQuery
impl UnsafeUnpin for CreateQuery
impl UnwindSafe for CreateQuery
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