How to Enable sqlite3_preupdate_hook() in Xcode

I tried to call the function sqlite3_preupdate_hook() but that isn't available natively, so I installed GRDB as a pod, but I am unable to use the above function since the sqlite file has to be precompiled with the above option, set to true.

Hello @ribhu69,

GRDB support for the pre-update hook is available through the TransactionObserver protocol. You're not supposed to call sqlite3_preupdate_hook yourself. The documentation explains how to enable support for it with CocoaPods.

Got it, Thanks :slight_smile: