Re: [sqlalchemy] How to declare ORM class with index that in postgress is created with GREATEST

2023-03-13 Thread Cameron Simpson
On 13Mar2023 09:05, Yoav Kopfstein wrote: I would like to declare an index in orm class with sqlalchemy 1.4 The index is created in postgres with this command: create index index_name on table_name (GREATEST(field_1, field_2)); how can I do it? (with __table_args__ or without ) Do you

[sqlalchemy] How to declare ORM class with index that in postgress is created with GREATEST

2023-03-13 Thread Yoav Kopfstein
Hi, I would like to declare an index in orm class with sqlalchemy 1.4 The index is created in postgres with this command: create index index_name on table_name (GREATEST(field_1, field_2)); how can I do it? (with __table_args__ or without ) thanks -- -- NOTICE: This email and all attach