Available on crate feature
__sqlite-shared only.Expand description
Types for the SQLite authorizer callback.
See sqlite3_set_authorizer
and the action code constants.
The authorizer callback receives an AuthorizerContext. It is an enum
with one variant per SQLite action code, and every variant carries the
arguments for that action under descriptive field names, so there is no
need to consult a table of what each positional argument means.
Two fields recur across variants. database is the name of the database
("main", "temp", or an ATTACH alias) an object lives in, when SQLite
reports it. accessor is the name of the inner-most trigger or view
responsible for the access, or None when the access is directly from
top-level SQL. A string argument is None when SQLite passes NULL or a
value that is not valid UTF-8.
Structs§
- Alter
Table - Authorizing an
ALTER TABLEstatement. - Analyze
- Authorizing an
ANALYZEstatement. - Attach
- Authorizing an
ATTACH DATABASEstatement. - Create
Index - Authorizing a
CREATE INDEXstatement. - Create
Table - Authorizing a
CREATE TABLEstatement. - Create
Temp Index - Authorizing a
CREATE TEMP INDEXstatement. - Create
Temp Table - Authorizing a
CREATE TEMP TABLEstatement. - Create
Temp Trigger - Authorizing a
CREATE TEMP TRIGGERstatement. - Create
Temp View - Authorizing a
CREATE TEMP VIEWstatement. - Create
Trigger - Authorizing a
CREATE TRIGGERstatement. - CreateV
Table - Authorizing a
CREATE VIRTUAL TABLEstatement. - Create
View - Authorizing a
CREATE VIEWstatement. - Delete
- Authorizing a
DELETEstatement. - Detach
- Authorizing a
DETACH DATABASEstatement. - Drop
Index - Authorizing a
DROP INDEXstatement. - Drop
Table - Authorizing a
DROP TABLEstatement. - Drop
Temp Index - Authorizing a
DROP TEMP INDEXstatement. - Drop
Temp Table - Authorizing a
DROP TEMP TABLEstatement. - Drop
Temp Trigger - Authorizing a
DROP TEMP TRIGGERstatement. - Drop
Temp View - Authorizing a
DROP TEMP VIEWstatement. - Drop
Trigger - Authorizing a
DROP TRIGGERstatement. - DropV
Table - Authorizing a
DROP VIRTUAL TABLEstatement. - Drop
View - Authorizing a
DROP VIEWstatement. - Function
- Authorizing a SQL function call.
- Insert
- Authorizing an
INSERTstatement. - Pragma
- Authorizing a
PRAGMAstatement. - Read
- Authorizing a column read.
- Recursive
- Authorizing a recursive
SELECT. - Reindex
- Authorizing a
REINDEXstatement. - Savepoint
- Authorizing a
SAVEPOINToperation. - Select
- Authorizing a
SELECTstatement. - Transaction
- Authorizing a transaction control operation (
BEGIN,COMMIT,ROLLBACK). - Unknown
- An action code SQLite reported that this version of diesel does not model.
- Update
- Authorizing an
UPDATEstatement.
Enums§
- Authorizer
Context - Context information passed to the authorizer callback.
- Authorizer
Decision - Authorizer callback decision.