GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
GroupBy currently supports only time periods (GROUP BY time())
I suggest that we introduce QueryBuilder.GroupByTag() and QueryBuilder.GroupByTime() for clarity.
GROUP BY time()
Also GroupByTime could accept time.Duration as a param instead of a string.
What do you think?
Hi, thank you for your recommendation, I think it is a good idea to enhance and clarify the GroupBy method.
I have already make this PR to enhance this feature #5 , you can see the usage of the GroupByTime and GroupByTag in README or in test case.
Beautiful! Thanks for the efforts, the lib is very useful.