Database Triggers

11 views
Skip to first unread message

gamm...@gmail.com

unread,
Feb 22, 2016, 8:19:45 AM2/22/16
to YapDatabase
Dear Robbie,

I figure that the best way to implement database triggers is to use the callback blocks of the hooks extension. 
Unfortunately, the callback methods won't let me modify the passed object via the passed transaction, even
when I modify the object within the willModify Block.  

I cannot use the presanitizer either because I need not only to (additionally) modify the object that gets modified,
but also insert/modify objects within another collection and the presanitizer doesn't give me a transaction object.

So, how do I implement database triggers? Do I have to go down to the sqlite level by writing my own extension?

Thank you!
Reply all
Reply to author
Forward
0 new messages