def METHOD_NAME(model, text):
    return [
        getattr(model, m.key).cast(Text).op("~*")(text)  # NOTE: not cross-db, postgres case-insensitive regex
        for m in model.__table__.columns
    ]