mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
TODO
This commit is contained in:
1 parent
c6582cd041
commit
fc8baafd1e
1 file changed
+2
@@ -238,6 +238,8 @@ public final class Database {
|
||||
private var pendingTransactionCompletion: TransactionCompletion? = nil
|
||||
|
||||
private func setupTransactionHooks() {
|
||||
// TODO: now that transactionObserver is a `let` property, don't
|
||||
// install any hook unless the observer is not null.
|
||||
let dbPointer = unsafeBitCast(self, UnsafeMutablePointer<Void>.self)
|
||||
|
||||
sqlite3_update_hook(sqliteConnection, { (dbPointer, updateKind, databaseName, tableName, rowID) in
|
||||
|
||||
Reference in new issue
Block a user