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

时间:2017-01-13 22:18:37   收藏:0   阅读:1551

利用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

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!