How to automatically reflect database to sqlalchemy declarative?

前端 未结 3 1516
天命终不由人
天命终不由人 2020-12-22 20:59

sqlautocode - has issues with many-to-many relations

sqlsoup - doesn\'t support relations

elixir - it\'s note auto-generate

Is there something else I

3条回答
  •  Happy的楠姐
    2020-12-22 21:43

    You could use sqlacodegen to generate all the models from the database. However you need to take care of the foreign key manually.

提交回复
热议问题