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

Function getSelect

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

Source from the content-addressed store, hash-verified

38 Object.keys(sb.having).length ? `HAVING ${join(sb.having, ' AND ')}` : '';
39 const getFrom = () => `FROM ${sb.from}`;
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 = () =>

Callers 2

createSqlBuilderFunction · 0.85
getChartSqlFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected