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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.