pub enum StatementType {
Select,
Insert,
Update,
Delete,
Ddl,
Transaction,
Other,
}Expand description
Type of SQL statement.
Variants§
Select
SELECT query
Insert
INSERT statement
Update
UPDATE statement
Delete
DELETE statement
Ddl
DDL statement (CREATE, ALTER, DROP)
Transaction
Transaction control (BEGIN, COMMIT, ROLLBACK)
Other
Unknown or other statement type
Implementations§
Source§impl StatementType
impl StatementType
Sourcepub fn returns_result_set(&self) -> bool
pub fn returns_result_set(&self) -> bool
Check if this statement type returns a result set.
Sourcepub fn returns_row_count(&self) -> bool
pub fn returns_row_count(&self) -> bool
Check if this statement type returns a row count.
Trait Implementations§
Source§impl Clone for StatementType
impl Clone for StatementType
Source§fn clone(&self) -> StatementType
fn clone(&self) -> StatementType
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 StatementType
impl Debug for StatementType
Source§impl PartialEq for StatementType
impl PartialEq for StatementType
impl Copy for StatementType
impl Eq for StatementType
impl StructuralPartialEq for StatementType
Auto Trait Implementations§
impl Freeze for StatementType
impl RefUnwindSafe for StatementType
impl Send for StatementType
impl Sync for StatementType
impl Unpin for StatementType
impl UnsafeUnpin for StatementType
impl UnwindSafe for StatementType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.