Type Alias
SQLiteConnection.SQLiteAuthorizerValidator
The type signature for authorizer validator callbacks.
typealias SQLiteAuthorizerValidator = @Sendable (SQLiteAuthorizerEvent) -> SQLiteAuthorizerResponse
Parameters
eventA
SQLiteAuthorizerEventcontaining details about the access attempt.
Return Value
A SQLiteAuthorizerResponse indicating whether to allow, deny, or ignore the operation.
Discussion
The authorizer validator examines database access attempts and decides whether to allow, deny, or ignore them. Only one validator can be active per connection.
Note
Callbacks run on SQLite’s internal thread. Hop to an actor or event loop as needed.