Public Gists by heynemann

Gravatar
Thu May 14 20:20:51 -0700 2009
1
2
3
From(collection)
          .order_by("-(salary + bonus)")
          .select("name","age","sex","salary","salary + bonus")
Gravatar
Thu May 14 20:12:49 -0700 2009
1
2
3
From(collection)
          .select("name","age","sex","salary","salary + bonus")
 
Gravatar
Thu May 14 20:08:41 -0700 2009
1
2
3
From(collection)
          .where("item.some_boolean or (item.other_boolean and item.another_boolean)")
          .order_by("item.some_order_property")
gist: 112035 Pynq query
Gravatar
Thu May 14 20:02:08 -0700 2009
1
2
3
From(collection)
          .where("item.property + item.value > 10")
          .order_by("item.some_order_property")
gist: 112032 Sample code for before Pynq
Gravatar
Thu May 14 19:57:12 -0700 2009
1
2
3
collection = some_method_return()
 
filtered = []