#[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

§code: i32

The unknown authorization action code.

§arg1: Option<&'c str>

The third arg to the authorizer callback.

§arg2: Option<&'c str>

The fourth arg to the authorizer callback.

This variant is not normally produced by SQLite. You may encounter it

§

CreateIndex

Fields

§index_name: &'c str
§table_name: &'c str
§

CreateTable

Fields

§table_name: &'c str
§

CreateTempIndex

Fields

§index_name: &'c str
§table_name: &'c str
§

CreateTempTable

Fields

§table_name: &'c str
§

CreateTempTrigger

Fields

§trigger_name: &'c str
§table_name: &'c str
§

CreateTempView

Fields

§view_name: &'c str
§

CreateTrigger

Fields

§trigger_name: &'c str
§table_name: &'c str
§

CreateView

Fields

§view_name: &'c str
§

Delete

Fields

§table_name: &'c str
§

DropIndex

Fields

§index_name: &'c str
§table_name: &'c str
§

DropTable

Fields

§table_name: &'c str
§

DropTempIndex

Fields

§index_name: &'c str
§table_name: &'c str
§

DropTempTable

Fields

§table_name: &'c str
§

DropTempTrigger

Fields

§trigger_name: &'c str
§table_name: &'c str
§

DropTempView

Fields

§view_name: &'c str
§

DropTrigger

Fields

§trigger_name: &'c str
§table_name: &'c str
§

DropView

Fields

§view_name: &'c str
§

Insert

Fields

§table_name: &'c str
§

Pragma

Fields

§pragma_name: &'c str
§pragma_value: Option<&'c str>

The pragma value, if present (e.g., PRAGMA name = value;).

§

Read

Fields

§table_name: &'c str
§column_name: &'c str
§

Select

§

Transaction

Fields

§

Update

Fields

§table_name: &'c str
§column_name: &'c str
§

Attach

Fields

§filename: &'c str
§

Detach

Fields

§database_name: &'c str
§

AlterTable

Fields

§database_name: &'c str
§table_name: &'c str
§

Reindex

Fields

§index_name: &'c str
§

Analyze

Fields

§table_name: &'c str
§

CreateVtable

Fields

§table_name: &'c str
§module_name: &'c str
§

DropVtable

Fields

§table_name: &'c str
§module_name: &'c str
§

Function

Fields

§function_name: &'c str
§

Savepoint

Fields

§savepoint_name: &'c str
§

Recursive

Trait Implementations§

source§

impl<'c> Clone for AuthAction<'c>

source§

fn clone(&self) -> AuthAction<'c>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'c> Debug for AuthAction<'c>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'c> PartialEq for AuthAction<'c>

source§

fn eq(&self, other: &AuthAction<'c>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'c> Copy for AuthAction<'c>

source§

impl<'c> Eq for AuthAction<'c>

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.