Skip to main content

Module authorizer

Module authorizer 

Source
Expand description

Authorizer callback trait (§9.4).

The authorizer is consulted during statement compilation (not execution) to allow or deny access to database objects and operations. This enables sandboxing untrusted SQL.

The Authorizer trait mirrors SQLite’s sqlite3_set_authorizer API: each callback receives an AuthAction code plus up to four optional string parameters providing context (table name, column name, database name, trigger name).

Enums§

AuthAction
SQL operation being authorized.
AuthResult
Result of an authorization check.

Traits§

Authorizer
Statement authorizer callback (§9.4).

Type Aliases§

AuthorizerAction
Alias for AuthAction (legacy name).
AuthorizerDecision
Alias for AuthResult (legacy name).