diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-10 16:04:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-10 16:47:02 +0200 |
commit | 8e54e4855b93996b0221ea973f5dadd03cc40f9d (patch) | |
tree | bf11d64dd08d9de72036e1006c9f061dce6ce1ef | |
parent | ac7e584c407c0577009a3671917f282303c6be74 (diff) |
Implement {query,execute}_{one,value}() shortcut functions
Useful in situations where the query is know to return at most one element
(*_one) or exactly one element (*_value).
-rw-r--r-- | feature/query/list | 4 | ||||
-rw-r--r-- | reference/bug/list (renamed from reference/list) | 0 | ||||
-rw-r--r-- | reference/feature/query/list | 6 |
3 files changed, 6 insertions, 4 deletions
diff --git a/feature/query/list b/feature/query/list index 85be57d..1787194 100644 --- a/feature/query/list +++ b/feature/query/list @@ -1,5 +1 @@ - Support containers in queries: container - -- Shortcut query() call for queries that always return one element - - Can be useful for aggregate queries, etc. diff --git a/reference/list b/reference/bug/list index 8d95506..8d95506 100644 --- a/reference/list +++ b/reference/bug/list diff --git a/reference/feature/query/list b/reference/feature/query/list new file mode 100644 index 0000000..94b6477 --- /dev/null +++ b/reference/feature/query/list @@ -0,0 +1,6 @@ ++ Shortcut query() call for queries that always return one element [2.4.0] + + Can be useful for aggregate queries, etc. + + Also added query_value() which returns the result by value. Very + handy when working with aggregate views. |