denodb
denodb copied to clipboard
Aggregation query error, no such column: count(*)
Steps to reproduce:
- initialize a connection to the db with sqlite (I did not try others)
- Query a table like this
MyModel.select('age', 'count(*)').groupBy('age');
Result: Uncaught SqliteError: no such column: count(*)
Is this an issue, or is there another way to select aggregations?
I ran into this issue tonight, was very surprised to see this issue open.
Lack of this feature seems like it'd destroy performance
I did some digging into the code, it seems like this is a problem more with a dependent library dex
than denodb, unfortunately it doesn't look like dex
is maintained anymore.