compileGroups method

String compileGroups(
  1. List<String> groups
)

Compile the "group by" portion of the query.

Implementation

String compileGroups(List<String> groups) {
  if (groups.isEmpty) return '';
  return 'GROUP BY ${groups.map(wrap).join(', ')}';
}