On May 18, 2005, at 8:22 AM, Mike Owens wrote:
What about sqlite3_set_authorizer()? Implement a callback function and monitor changes in transaction state for each connection object:
open_database(...) { ... sqlite3* db = ... connection_object* object = ... sqlite3_set_authorizer(db, auth_handler, (void*)object); ... }
I actually considered this idea, but I wasn't sure I'd get a callback on both sides of the transaction. Your code suggests I would. If that's right, this seems like a really cool idea.
Thanks.