Created
May 15, 2009 03:02
-
-
Save heynemann/112035 to your computer and use it in GitHub Desktop.
Pynq query
This file contains 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
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