Can SQLAlchemy automatically create relationships from a database schema?

前端 未结 2 1563
无人共我
无人共我 2020-12-30 09:15

Starting from an existing (SQLite) database with foreign keys, can SQLAlchemy automatically build relationships?

SQLAlchemy classes are automatically created via

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 09:45

    As of SQLAlchemy 0.9.1 the (for now experimental) Automap extension would seem to do just that: http://docs.sqlalchemy.org/en/rel_0_9/orm/extensions/automap.html

提交回复
热议问题