signals or triggers in SQLAlchemy

后端 未结 5 1689
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 05:04

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.

5条回答
  •  佛祖请我去吃肉
    2021-02-04 05:32

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

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

提交回复
热议问题