gitql icon indicating copy to clipboard operation
gitql copied to clipboard

Is count supported?

Open xuegl opened this issue 2 years ago • 4 comments

i tried to use count in SQL but got an error:

gitql> select author, count(author) as count from commits group by author
Error: Expected T_ID and found T_COUNT

So is count is not supported yet?

xuegl avatar Apr 22 '22 06:04 xuegl

Hello @xuegl . count is supported but group by is not yet.

For example:

gitql "select count(*) from commits where date > '2022-04-01'"

filhodanuvem avatar Apr 22 '22 21:04 filhodanuvem

@filhodanuvem Are there any plan to support this feature?

xuegl avatar Apr 24 '22 00:04 xuegl

Not in the near future, but we are always open to contributions. If you want to drive this I will be happy to support you.

filhodanuvem avatar Apr 24 '22 10:04 filhodanuvem

@filhodanuvem I'd like to contribute to this project

KenyStev avatar Oct 07 '22 00:10 KenyStev