Answers for "flask sqlalchemy case insensitive like"

0

flask sqlalchemy case insensitive like

my_string = 'BarFoo'
session.query(Foo).filter(func.lower(Foo.bar) == my_string.lower()).all()
#or
.query.filter(Model.column.ilike("ganye"))
Posted by: Guest on October-02-2021

Code answers related to "flask sqlalchemy case insensitive like"

Python Answers by Framework

Browse Popular Code Answers by Language