Enum sql_type::StatementType
source · [−]pub enum StatementType<'a> {
Select {
columns: Vec<SelectTypeColumn<'a>>,
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>,
},
Delete {
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>,
},
Insert {
yield_autoincrement: AutoIncrementId,
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>,
},
Update {
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>,
},
Replace {
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>,
},
Invalid,
}
Expand description
Type information of typed statement
Variants
Select
Fields
columns: Vec<SelectTypeColumn<'a>>
The types and named of the columns return from the select
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>
The key and type of arguments to the query
The statement was a select statement
Delete
Fields
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>
The key and type of arguments to the query
The statement is a delete statement
Insert
Fields
yield_autoincrement: AutoIncrementId
The insert happend in a table with a auto increment id row
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>
The key and type of arguments to the query
The statement is an insert statement
Update
Fields
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>
The key and type of arguments to the query
The statement is a update statement
Replace
Fields
arguments: Vec<(ArgumentKey<'a>, FullType<'a>)>
The key and type of arguments to the query
The statement is a replace statement
Invalid
The query was not valid, errors are preset in issues
Trait Implementations
sourceimpl<'a> Clone for StatementType<'a>
impl<'a> Clone for StatementType<'a>
sourcefn clone(&self) -> StatementType<'a>
fn clone(&self) -> StatementType<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for StatementType<'a>
impl<'a> Send for StatementType<'a>
impl<'a> Sync for StatementType<'a>
impl<'a> Unpin for StatementType<'a>
impl<'a> UnwindSafe for StatementType<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more