Thanks for the quick response. I guess I'll have to rewrite that part to define a pysqlite function‎ and then install a sqlite3 trigger that calls it. That should catch all changes regardless of how they arise. Thanks again, E Sent from my BlackBerry 10 smartphone on the Rogers network.
On Jan 15, 2014, at 7:15 PM, Ed Willis <[email protected]> wrote:
if you are sending just session.execute(), the events that trip for that are the connection-level events: http://docs.sqlalchemy.org/en/rel_0_9/core/events.html#sqlalchemy.events.ConnectionEvents.before_execute - before the SQL construct is “compiled�, if applicable http://docs.sqlalchemy.org/en/rel_0_9/core/events.html#sqlalchemy.events.ConnectionEvents.before_cursor_execute - right as we hit the cursor with a string statement. if you are sending session.execute(“insert into table�), you have to parse the SQL in order to catch that, I don’t know what the way around that would be. Of course the way DBA folks do this is to put triggers on the tables themselves. Depends on how much control you have over how this database is accessed. You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out. | ||
- [sqlalchemy] Event listeners and core versus orm Ed Willis
- Re: [sqlalchemy] Event listeners and core versus orm Michael Bayer
- Re: [sqlalchemy] Event listeners and core versus or... ewillis
- Re: [sqlalchemy] Event listeners and core versus or... Ed Willis
