Enum rusqlite::hooks::AuthAction
source · #[non_exhaustive]pub enum AuthAction<'c> {
Show 34 variants
Unknown {
code: i32,
arg1: Option<&'c str>,
arg2: Option<&'c str>,
},
CreateIndex {
index_name: &'c str,
table_name: &'c str,
},
CreateTable {
table_name: &'c str,
},
CreateTempIndex {
index_name: &'c str,
table_name: &'c str,
},
CreateTempTable {
table_name: &'c str,
},
CreateTempTrigger {
trigger_name: &'c str,
table_name: &'c str,
},
CreateTempView {
view_name: &'c str,
},
CreateTrigger {
trigger_name: &'c str,
table_name: &'c str,
},
CreateView {
view_name: &'c str,
},
Delete {
table_name: &'c str,
},
DropIndex {
index_name: &'c str,
table_name: &'c str,
},
DropTable {
table_name: &'c str,
},
DropTempIndex {
index_name: &'c str,
table_name: &'c str,
},
DropTempTable {
table_name: &'c str,
},
DropTempTrigger {
trigger_name: &'c str,
table_name: &'c str,
},
DropTempView {
view_name: &'c str,
},
DropTrigger {
trigger_name: &'c str,
table_name: &'c str,
},
DropView {
view_name: &'c str,
},
Insert {
table_name: &'c str,
},
Pragma {
pragma_name: &'c str,
pragma_value: Option<&'c str>,
},
Read {
table_name: &'c str,
column_name: &'c str,
},
Select,
Transaction {
operation: TransactionOperation,
},
Update {
table_name: &'c str,
column_name: &'c str,
},
Attach {
filename: &'c str,
},
Detach {
database_name: &'c str,
},
AlterTable {
database_name: &'c str,
table_name: &'c str,
},
Reindex {
index_name: &'c str,
},
Analyze {
table_name: &'c str,
},
CreateVtable {
table_name: &'c str,
module_name: &'c str,
},
DropVtable {
table_name: &'c str,
module_name: &'c str,
},
Function {
function_name: &'c str,
},
Savepoint {
operation: TransactionOperation,
savepoint_name: &'c str,
},
Recursive,
}
Available on crate feature
hooks
only.Expand description
Actions and arguments found within a statement during preparation.
See https://sqlite.org/c3ref/c_alter_table.html for more info.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Fields
This variant is not normally produced by SQLite. You may encounter it
CreateIndex
CreateTable
CreateTempIndex
CreateTempTable
CreateTempTrigger
CreateTempView
CreateTrigger
CreateView
Delete
DropIndex
DropTable
DropTempIndex
DropTempTable
DropTempTrigger
DropTempView
DropTrigger
DropView
Insert
Pragma
Fields
Read
Select
Transaction
Fields
§
operation: TransactionOperation
Update
Attach
Detach
AlterTable
Reindex
Analyze
CreateVtable
DropVtable
Function
Savepoint
Recursive
Trait Implementations§
source§impl<'c> Clone for AuthAction<'c>
impl<'c> Clone for AuthAction<'c>
source§fn clone(&self) -> AuthAction<'c>
fn clone(&self) -> AuthAction<'c>
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 moresource§impl<'c> Debug for AuthAction<'c>
impl<'c> Debug for AuthAction<'c>
source§impl<'c> PartialEq for AuthAction<'c>
impl<'c> PartialEq for AuthAction<'c>
source§fn eq(&self, other: &AuthAction<'c>) -> bool
fn eq(&self, other: &AuthAction<'c>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'c> Copy for AuthAction<'c>
impl<'c> Eq for AuthAction<'c>
impl<'c> StructuralPartialEq for AuthAction<'c>
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AuthAction<'c>
impl<'c> Send for AuthAction<'c>
impl<'c> Sync for AuthAction<'c>
impl<'c> Unpin for AuthAction<'c>
impl<'c> UnwindSafe for AuthAction<'c>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more