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,
}
This is supported 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
code: i32
The unknown authorization action code.
This variant is not normally produced by SQLite. You may encounter it
CreateIndex
CreateTable
Fields
table_name: &'c str
CreateTempIndex
CreateTempTable
Fields
table_name: &'c str
CreateTempTrigger
CreateTempView
Fields
view_name: &'c str
CreateTrigger
CreateView
Fields
view_name: &'c str
Delete
Fields
table_name: &'c str
DropIndex
DropTable
Fields
table_name: &'c str
DropTempIndex
DropTempTable
Fields
table_name: &'c str
DropTempTrigger
DropTempView
Fields
view_name: &'c str
DropTrigger
DropView
Fields
view_name: &'c str
Insert
Fields
table_name: &'c str
Pragma
Fields
pragma_name: &'c str
Read
Select
Transaction
Fields
operation: TransactionOperation
Update
Attach
Fields
filename: &'c str
Detach
Fields
database_name: &'c str
AlterTable
Reindex
Fields
index_name: &'c str
Analyze
Fields
table_name: &'c str
CreateVtable
DropVtable
Function
Fields
function_name: &'c str
Savepoint
Recursive
Trait Implementations
sourceimpl<'c> Clone for AuthAction<'c>
impl<'c> Clone for AuthAction<'c>
sourcefn clone(&self) -> AuthAction<'c>
fn clone(&self) -> AuthAction<'c>
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
sourceimpl<'c> Debug for AuthAction<'c>
impl<'c> Debug for AuthAction<'c>
sourceimpl<'c> PartialEq<AuthAction<'c>> for AuthAction<'c>
impl<'c> PartialEq<AuthAction<'c>> for AuthAction<'c>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &AuthAction<'c>) -> bool
fn ne(&self, other: &AuthAction<'c>) -> bool
This method tests for !=
.
impl<'c> Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more