MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / end

Method end

packages/db/src/clickhouse/query-builder.ts:677–689  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

675 }
676
677 end(): Query {
678 const groupCondition = this.conditions
679 .map((c, i) => (i === 0 ? c.condition : `${c.operator} ${c.condition}`))
680 .join(' ');
681
682 this.query._addWhereCondition({
683 condition: groupCondition,
684 operator: this.groupOperator,
685 isGroup: true,
686 });
687
688 return this.query;
689 }
690}
691
692// Helper function to create a new query

Callers 3

handleMcpPostFunction · 0.45
handleMcpGetFunction · 0.45
getTopPagesMethod · 0.45

Calls 3

joinMethod · 0.80
_addWhereConditionMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected