Skip to content

Type Alias

SQLiteConnection.SQLiteCommitObserver

The type signature for commit observer callbacks (pure observation, cannot veto).
typealias SQLiteCommitObserver = @Sendable (SQLiteCommitEvent) -> Void

Parameters

event

A SQLiteCommitEvent containing details about the commit attempt.

Discussion

Commit observers are for logging, metrics, and other side effects that should not interfere with the commit process. They cannot veto or abort commits.

Note

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