Skip to content

Instantly share code, notes, and snippets.

@makupi
Last active May 9, 2020 17:22
Show Gist options
  • Save makupi/411bc17b06ab40ea0170adb82c70130a to your computer and use it in GitHub Desktop.
Save makupi/411bc17b06ab40ea0170adb82c70130a to your computer and use it in GitHub Desktop.
GINO tips and notes
# 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