Re: [sqlalchemy] return value of array at a specific index

2016-05-22 Thread Brian Cherinka
Thanks Mike. That ARRAY_D class did the trick. Thanks for pointing it out. On Sunday, May 22, 2016 at 11:52:11 PM UTC-4, Mike Bayer wrote: > > > > On 05/22/2016 07:12 PM, Brian Cherinka wrote: > > > > What's the proper way to return in an ORM query the value of a Postgres > > array

Re: [sqlalchemy] return value of array at a specific index

2016-05-22 Thread Mike Bayer
On 05/22/2016 07:12 PM, Brian Cherinka wrote: What's the proper way to return in an ORM query the value of a Postgres array attribute at a given specific index within the array? I have a db table with a column called value, which is a 2d array, defined as REAL[][]. My ModelClass is defined

[sqlalchemy] return value of array at a specific index

2016-05-22 Thread Brian Cherinka
What's the proper way to return in an ORM query the value of a Postgres array attribute at a given specific index within the array? I have a db table with a column called value, which is a 2d array, defined as REAL[][]. My ModelClass is defined as class EmLine(Base): __tablename__ =