Skip to content

Commit

Permalink
Add standalone count macro for piping
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Feb 13, 2018
1 parent 68cc983 commit 6586f5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/standalone_query_macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6586f5e

Please sign in to comment.