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

Function getWhere

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

Source from the content-addressed store, hash-verified

33 };
34
35 const getWhere = () =>
36 Object.keys(sb.where).length ? `WHERE ${join(sb.where, ' AND ')}` : '';
37 const getHaving = () =>
38 Object.keys(sb.having).length ? `HAVING ${join(sb.having, ' AND ')}` : '';
39 const getFrom = () => `FROM ${sb.from}`;

Callers 3

createSqlBuilderFunction · 0.85
getFunnelConditionsMethod · 0.85
getChartSqlFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected