Re: [sqlalchemy] Querying a dict collection by key/value pair

2016-08-12 Thread Dominik George
Hi, Am Freitag, 12. August 2016 11:12:37 UTC+2 schrieb Dominik George: > > I would probably go with monkey-patching SQLAlchemy at runtime and I am > afraid Python would actually allow that. > > > Did it, and it actually works nicely:

Re: [sqlalchemy] Querying a dict collection by key/value pair

2016-08-12 Thread Dominik George
Hi, >Unfortunately this is not supported right now and I've created >https://bitbucket.org/zzzeek/sqlalchemy/issues/3769/chained-any-has-with-association-proxy > >which includes a patch so that this can be provided in the future. OK, thank you! Can you give me a hint on how to work-around it

[sqlalchemy] Querying a dict collection by key/value pair

2016-08-11 Thread Dominik George
Hi, first of all, thanks for SQLAlchemy - it's the one project that actually made me enjoy working with large data collections in applications ;)! I have an SQLAlchemy model that associates tags (key/value pairs) with elements, like in attached mwe.py. Element.tags is a dictionary