【问题标题】:Can I use alembic autogenerate with Peewee ORM?我可以在 Peewee ORM 中使用 alembic autogenerate 吗?
【发布时间】:2021-09-15 11:42:56
【问题描述】:

我将 Alembic 与 SQL alchemy 一起使用,自动生成选项效果很好。 在我的新公司,我们使用 Peewee 作为 ORM。是否可以让 Alembic 自动生成与 Peewee 一起使用?

我查看了文档 https://alembic.sqlalchemy.org/en/latest/autogenerate.html 并且有很多 SQL alchemy 提到,但我找不到说它只适用于 SQL alchemy 的东西

【问题讨论】:

标签: postgresql sqlalchemy peewee alembic


【解决方案1】:

为了让来自 Google 的未来开发人员清楚,目前 [7.2021] 没有选项可以为 SQLalchemy 以外的其他东西使用 alembic 的自动生成,正如您在 @snakecharmerb 中看到的那样评论。

而在Docs

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-03-17
    • 2016-05-22
    • 1970-01-01
    • 1970-01-01
    • 2012-11-20
    • 1970-01-01
    • 2013-05-25
    • 2022-11-10
    相关资源
    最近更新 更多