Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

signals or triggers in SQLAlchemy

does SQLAlchemy have something similar to Django's signal concept? Basically, I'd like to trigger a few functions when I pre-save or post-save some entity objects. Thanks.

Edit: I JUST want equivalent of django-signals in SQLAlchemy.

like image 888
starhusker Avatar asked Aug 03 '09 12:08

starhusker


1 Answers

I think you are looking for `ORM Events'. You can find documentation here:

http://docs.sqlalchemy.org/en/latest/orm/events.html

like image 84
S.C. Avatar answered Sep 26 '22 08:09

S.C.