Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(5) | Call(5) | Derive(0) | Import(0)
src/s/t/storm-0.20/tests/store/base.py storm(Download)
def test_find_group_by(self): result = self.store.find((Count(FooValue.id), Sum(FooValue.value1))) result.group_by(FooValue.value2) result.order_by(Count(FooValue.id), Sum(FooValue.value1)) result = list(result)
def test_find_group_by_multiple_tables(self): result = self.store.find( Sum(FooValue.value2), Foo.id == FooValue.foo_id) result.group_by(Foo.id) result.order_by(Sum(FooValue.value2))
result = self.store.find( (Sum(FooValue.value2), Foo), Foo.id == FooValue.foo_id) result.group_by(Foo) result.order_by(Sum(FooValue.value2)) result = list(result)
(Foo.id, Sum(FooValue.value2), Avg(FooValue.value1)), Foo.id == FooValue.foo_id) result.group_by(Foo.id) result.order_by(Foo.id) result = list(result)
def test_find_group_by_values(self): result = self.store.find( (Sum(FooValue.value2), Foo), Foo.id == FooValue.foo_id) result.group_by(Foo) result.order_by(Foo.title)