Skip to content

Constrain on model attribute of where clause when using select #751

Discussion options

You must be logged in to vote
from sqlalcmey import func

statement = select(Hero).where(func.lower(Hero.name) == "deadpond")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants