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

Function getReplicatedTableName

packages/db/src/clickhouse/client.ts:96–101  ·  view source on GitHub ↗
(tableName: string)

Source from the content-addressed store, hash-verified

94 * In non-clustered mode, returns the original table name
95 */
96export function getReplicatedTableName(tableName: string): string {
97 if (isClickhouseClustered()) {
98 return `${tableName}_replicated ON CLUSTER '{cluster}'`;
99 }
100 return tableName;
101}
102
103function getClickhouseSettings(): ClickHouseSettings {
104 const additionalSettings =

Callers 8

updateCohortMembershipFunction · 0.90
deleteCohortMembershipFunction · 0.90
deleteFromClickhouseFunction · 0.90
cleanupStagingDataFunction · 0.90
processBufferMethod · 0.90
deleteDuplicatesFunction · 0.90

Calls 1

isClickhouseClusteredFunction · 0.85

Tested by

no test coverage detected