pub enum SQLContextType {
None,
CreateTable(String),
ColumnDefinition((String, String, usize)),
Insert(InsertContext),
}
Expand description
Context given to the value handler clousure. This indicates where in the query is the parser.
For example, SQLContextType::ColumnDefinition((table_name, column_name, column_index)) Or SQLContextType::Insert(InsertContext::Value(table_name, column_index))
Variants§
None
CreateTable(String)
Contains the table name
ColumnDefinition((String, String, usize))
Contains the table name, the column name and the column index
Insert(InsertContext)
Contains an Inser context
Trait Implementations§
Source§impl Clone for SQLContextType
impl Clone for SQLContextType
Source§fn clone(&self) -> SQLContextType
fn clone(&self) -> SQLContextType
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 moreAuto Trait Implementations§
impl Freeze for SQLContextType
impl RefUnwindSafe for SQLContextType
impl Send for SQLContextType
impl Sync for SQLContextType
impl Unpin for SQLContextType
impl UnwindSafe for SQLContextType
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