Re: [sqlalchemy] How to pass a table as a function parameter?

2015-08-22 Thread Tim Radke
? SQLAlchemy doesn't support that. Just use text(), if this is the case. On 8/21/15 11:44 PM, Tim Radke wrote: I'm using SQLAlchemy version 0.9.8, connecting to Postgres 9.4. I'm trying to do something like this: query = select([func.to_json(User)]).select_from(User) # Printing

[sqlalchemy] How to pass a table as a function parameter?

2015-08-21 Thread Tim Radke
I'm using SQLAlchemy version 0.9.8, connecting to Postgres 9.4. I'm trying to do something like this: query = select([func.to_json(User)]).select_from(User) # Printing the query returns something that seems to make sense: # print select([func.to_json(User)]).select_from(User) # SELECT