How to run sqlacodegen?

前端 未结 2 860
长情又很酷
长情又很酷 2021-02-04 21:21

I\'m not understanding why I can\'t run sqlacodegen. I\'m looking to use it for create a SQLAlchemy model from my existing PostgreSQL database. It won\'t run.

When I

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-04 21:53

    Few things which are already answered here:

    1. sqlacodegen should be installed using pip
    2. once installed it should be run from windows command prompt and not from python shell.
    3. if you are giving multiple table names do not give any space between table names provide only commas.

提交回复
热议问题