Re: [sqlalchemy] Is there a better and more idiomatic way to accomplish this?

2015-10-01 Thread Mike Bayer
On 10/1/15 11:41 AM, Massimiliano della Rovere wrote: Greetings, I have two questions to the following code that works, but looks dirty to me. Being new to SQLAlchemy I'd like to ask for advices. The database is PostgreSQL. The following check_xyz function must check whether the index

[sqlalchemy] Is there a better and more idiomatic way to accomplish this?

2015-10-01 Thread Massimiliano della Rovere
Greetings, I have two questions to the following code that works, but looks dirty to me. Being new to SQLAlchemy I'd like to ask for advices. The database is PostgreSQL. The following check_xyz function must check whether the index "table_xyz_idx" exists in table "table". The table surely