Sqlalchemy - executing raw sql queries

后端 未结 1 1806
猫巷女王i
猫巷女王i 2021-01-16 11:45

I\'m using sqlalchemy in a flask application that connects to multiple databases, using binds as shown here. I want to execute a raw sql query on one of the non-primary data

相关标签:
1条回答
  • 2021-01-16 12:32

    Try this:

    from flask import current_app
    db.get_engine(current_app, bind='<your_bind>').execute('<your raw sql>')
    
    0 讨论(0)
提交回复
热议问题