利用flask-sqlacodegen快速导入ORM表结构

利用flask-sqlacodegen快速导入ORM表结构

 

友情提示:如果是使用pymysql请预先pip install 哦~

这是window下使用virtualenv环境下执行的

Linux用户可能使用起来不太一样

 

(env) d:\MyProject>flask-sqlacodegen --outfile models.py  --flask mysql
+pymysql://mysqlusername:mysqlpass@127.0.0.1/dbname

 

几个有用的链接

https://pypi.python.org/pypi/flask-sqlacodegen/

https://github.com/ksindi/flask-sqlacodegen

https://simpletutorials.com/c/2217/SQLAlchemy%20Code%20Generation

 

posted @ 2017-01-13 19:13  hallo.world  阅读(3962)  评论(1编辑  收藏  举报