MCPcopy Index your code
hub / github.com/Openpanel-dev/openpanel / getGroupBy

Function getGroupBy

packages/db/src/sql-builder.ts:42–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 const getSelect = () =>
41 `SELECT ${Object.keys(sb.select).length ? join(sb.select, ', ') : '*'}`;
42 const getGroupBy = () =>
43 Object.keys(sb.groupBy).length ? `GROUP BY ${join(sb.groupBy, ', ')}` : '';
44 const getOrderBy = () =>
45 Object.keys(sb.orderBy).length ? `ORDER BY ${join(sb.orderBy, ', ')}` : '';
46 const getLimit = () => (sb.limit ? `LIMIT ${sb.limit}` : '');

Callers 2

createSqlBuilderFunction · 0.85
getChartSqlFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected