app.config['SQLALCHEMY_DATABASE_URI'] = "mysql://root:xxx@127.0.0.1/xxx"app.config["SQLALCHEMY_BINDS"]={ "sqlite_test":"sqlite:///database.db"}
配置如上?
我有一个需求是执行
db.session.execute("select xxxx")
这个execute方法默认会在mysql中查找。
温温酱
相关分类