SqlAlchemy

Database

打印建表语句

from sqlalchemy.schema import CreateTable
print CreateTable(Model.__table__).compile(engine)

参考: http://stackoverflow.com/questions/2128717/sqlalchemy-printing-raw-sql-from-create

END

Published @ Aug 15, 2017

章节导航: