SyntaxFix
Write A Post
Hire A Developer
Questions
Have you tried:
result = db.engine.execute("<sql here>")
or:
from sqlalchemy import text sql = text('select name from penguins') result = db.engine.execute(sql) names = [row[0] for row in result] print names