Skip to content

Instantly share code, notes, and snippets.

@heynemann
Created May 15, 2009 03:02
Show Gist options
  • Save heynemann/112035 to your computer and use it in GitHub Desktop.
Save heynemann/112035 to your computer and use it in GitHub Desktop.
Pynq query
From(collection)
.where("item.property + item.value > 10")
.order_by("item.some_order_property")
.select_many()
# this returns an ordered collectin with only the items that
# have the sum of property and value greater than 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment