I am working in a pyramid project and I\'ve the table in SQLAlchemy in declarative syntax
\"\"\"models.py\"\"\" class Projects(Base): __tablename__ = \'proje
Just playing around, this syntax will give you all the columns (so to solve your problem, set query to look at one table/object only):
conn.execute(query)._metadata.keys