[sqlalchemy] generating safe sqlalchemy.sql.text elements?

2015-04-03 Thread Jonathan Vanasco
I have an include file that generates a handful of timestamp clauses: def sql_now(): return sqlalchemy.sql.text((CURRENT_TIMESTAMP AT TIME ZONE 'UTC')) def sql_now_minus_10_minutes(): return sqlalchemy.sql.text((CURRENT_TIMESTAMP AT TIME ZONE 'UTC' - INTERVAL '10 MINUTES')) One of them needs

Re: [sqlalchemy] generating safe sqlalchemy.sql.text elements?

2015-04-03 Thread Mike Bayer
On 4/3/15 3:10 PM, Jonathan Vanasco wrote: I have an include file that generates a handful of timestamp clauses: def sql_now(): return sqlalchemy.sql.text((CURRENT_TIMESTAMP AT TIME ZONE 'UTC')) def sql_now_minus_10_minutes(): return sqlalchemy.sql.text((CURRENT_TIMESTAMP AT TIME ZONE

Re: [sqlalchemy] generating safe sqlalchemy.sql.text elements?

2015-04-03 Thread Jonathan Vanasco
oh, a HUGE thanks! -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to