返回介绍

API

发布于 2023-05-20 01:15:15 字数 2187 浏览 0 评论 0 收藏 0

Extension

class flask_sqlalchemy.SQLAlchemy(app=None, *, metadata=None, session_options=None, query_class=<class 'flask_sqlalchemy.query.Query'>, model_class=<class 'flask_sqlalchemy.model.Model'>, engine_options=None, add_models_to_shell=True)
class flask_sqlalchemy.model.Model
class flask_sqlalchemy.session.Session(db, **kwargs)
class flask_sqlalchemy.pagination.Pagination
class flask_sqlalchemy.query.Query(entities, session=None)
flask_sqlalchemy.record_queries.get_recorded_queries()
flask_sqlalchemy.track_modifications.models_committed

This Blinker signal is sent after the session is committed if there were changed models in the session.

The sender is the application that emitted the changes. The receiver is passed the changes argument with a list of tuples in the form (instance, operation). The operations are "insert", "update", and "delete".

flask_sqlalchemy.track_modifications.before_models_committed

This signal works exactly like models_committed but is emitted before the commit takes place.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文