[Ncr-Python.in] Running a trigger with sqlalchemy that works with session.execute
Anyone who can help out with sqlalchemy related problem I have a app which using sqlalchemy as the orm. As the app is one in transition some of the update query's run through a session.execute . However I need to create a trigger of some kind . I am trying to use MapperExtensions but it seems that session.execute when it runs an update does not actually create a Mapper event. How can I trigger one of the mapper events? Please do check these docs: http://docs.sqlalchemy.org/en/rel_0_7/orm/deprecated.html -- A-M-I-T S|S
I did it with sqlalchemy.sql.text, using plain sql. Create a procedure and define the trigger on table. On Mon, May 6, 2013 at 10:41 PM, Amit Sethi <amit.pureenergy@gmail.com>wrote:
Anyone who can help out with sqlalchemy related problem
I have a app which using sqlalchemy as the orm. As the app is one in transition some of the update query's run through a session.execute . However I need to create a trigger of some kind . I am trying to use MapperExtensions but it seems that session.execute when it runs an update does not actually create a Mapper event. How can I trigger one of the mapper events?
Please do check these docs: http://docs.sqlalchemy.org/en/rel_0_7/orm/deprecated.html
-- A-M-I-T S|S
_______________________________________________ http://mail.python.org/mailman/listinfo/ncr-python.in Mailing list guidelines : http://python.org.in/wiki/NcrPython/MailingListGuidelines
-- regards
participants (2)
-
Amit Sethi -
chandrakant kumar