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

Function getOrderBy

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

Source from the content-addressed store, hash-verified

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}` : '');
47 const getOffset = () => (sb.offset ? `OFFSET ${sb.offset}` : '');
48 const getJoins = () =>

Callers 2

createSqlBuilderFunction · 0.85
getChartSqlFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected