From 6586f5e2290eebf666e74ea85f16d58cf2304771 Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Tue, 13 Feb 2018 15:02:54 -0800 Subject: [PATCH] Add standalone count macro for piping --- src/standalone_query_macros.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/standalone_query_macros.jl b/src/standalone_query_macros.jl index 69a76cc7..71cda29d 100644 --- a/src/standalone_query_macros.jl +++ b/src/standalone_query_macros.jl @@ -7,6 +7,10 @@ macro count(source) :(QueryOperators.count(QueryOperators.query($(esc(source))))) end +macro count() + :( i -> QueryOperators.count(QueryOperators.query(i))) +end + macro groupby(source, elementSelector, resultSelector) elementSelector_as_anonym_func = helper_replace_anon_func_syntax(elementSelector) resultSelector_as_anonym_func = helper_replace_anon_func_syntax(resultSelector)