I want to query data from database use sqlalchemy, and the code is below:
session.query(Person).filter(Person.name.like("%tom%")).all()
but this is case sensitive, in other words, the params of like is just match "tom" and dose not contain "TOM". How to deal with the query without case sensitive ?