PostgreSQL
 sql >> Base de Dados >  >> RDS >> PostgreSQL

Consulta PostgreSQL ILIKE com SQLAlchemy


Eu acho que isso deve resultar
Post.query.filter(Post.title.ilike('%some_phrase%'))

http://docs.sqlalchemy.org/en/latest/orm/internals.html?highlight=ilike#sqlalchemy.orm.attributes.QueryableAttribute.ilike