Skip to content

Type Alias

SQLiteConnection.SQLiteAuthorizerObserver

The type signature for authorizer observer callbacks.
typealias SQLiteAuthorizerObserver = @Sendable (SQLiteAuthorizerEvent) -> Void

Parameters

event

A SQLiteAuthorizerEvent containing details about the access attempt.

Discussion

Authorizer observers perform pure observation (logging, metrics, auditing) without the ability to influence access control decisions. They are notified only if the authorizer validator (if any) has not denied the operation.

Note

Callbacks run on SQLite’s internal thread. Hop to an actor or event loop as needed.