Last active
May 9, 2020 17:22
-
-
Save makupi/411bc17b06ab40ea0170adb82c70130a to your computer and use it in GitHub Desktop.
GINO tips and notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LIKE query | |
items = await Model.query.where(Model.name.like(f'%{name}%')).gino.all() | |
# AND query, can be achieved through chaining .where() | |
items = await Model.query.where(Model.guild_id == guild_id).where(Model.name==name).gino.all() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment