flask orm to compare case insensitive equality condition sqlalchemy code example
Example: insensitive case match sqlalchemy
from sqlalchemy import func
user = models.User.query.filter(func.lower(User.username) == func.lower("GaNyE")).first()
from sqlalchemy import func
user = models.User.query.filter(func.lower(User.username) == func.lower("GaNyE")).first()