Compile the "group by" portion of the query.
String compileGroups(List<String> groups) { if (groups.isEmpty) return ''; return 'GROUP BY ${groups.map(wrap).join(', ')}'; }