Re: [sqlalchemy] SQLAlchemy array aggregate of objects

2020-11-05 Thread Mike Bayer
I think what's important here is to come up with the exact SQL string you'd like to create first, then if you can share that here we can show you how SQLAlchemy can render it from the expression language.As far as working with the PG functions someone else here might know or you can try

[sqlalchemy] SQLAlchemy array aggregate of objects

2020-11-05 Thread Wojtek K
Hi All, I'm trying to find the solution but with no success I have 2 tables related through assoc table table a id |name| -|| 1|example | assoc id |a_id | b_id | -|-|--| 1|1|1 | 2|1|2 | table b id |name | -|-| 1