flask sqlalchemy case insensitive like

Solutions on MaxInterview for flask sqlalchemy case insensitive like by the best coders in the world

showing results for - "flask sqlalchemy case insensitive like"
Cody
30 Apr 2019
1 my_string = 'BarFoo'
2session.query(Foo).filter(func.lower(Foo.bar) == my_string.lower()).all()
3#or
4.query.filter(Model.column.ilike("ganye"))
5