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
Try this:
from flask import current_app db.get_engine(current_app, bind='<your_bind>').execute('<your raw sql>')