Skip to content

Type Alias

SQLiteConnection.SQLiteUpdateHookCallback

The type signature for update hook callbacks.
typealias SQLiteUpdateHookCallback = @Sendable (SQLiteUpdateEvent) -> Void

Parameters

event

A SQLiteUpdateEvent containing details about the database modification.

Discussion

Note

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