[sqlalchemy] Re: How to filter SQLAlchemy JSON column containing array of dicts by dict attribute

2021-09-03 Thread Joseph Baniqued
It's just a simple syntax issue in Boncheff's query. in_ takes a list so it should be: *session.query(MyModel).filter(MyModel.foo[0]['tags'].in_(['test_tag1'])).all()* On Tuesday, November 27, 2018 at 11:55:57 AM UTC-8 himanshu jain wrote: > How did you get it working? > can you give an exam

[sqlalchemy] Can `sqlalchemy.orm.validates` be set on multiple attributes?

2021-09-03 Thread niuji...@gmail.com
In the official documentation it says: validates (*names, **kw) Decorate a method as a ‘validator’ for one or more named properties. I need to validate two incoming *-**attributes at the same time, for

Re: [sqlalchemy] Issue with mypy and the new version of alembic (1.7.1 agaist 1.6.5)

2021-09-03 Thread Stéphane Brunner
OK, thanks for the information :-) Le Thursday, September 2, 2021 à 3:45:45 PM UTC+2, Mike Bayer a écrit : > this is issue https://github.com/sqlalchemy/alembic/issues/897 and we > don't know how to fix it. suggestions welcome. > > > > On Thu, Sep 2, 2021, at 3:32 AM, Stéphane Brunner wrote: >