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

Function dropTable

packages/db/src/clickhouse/migration.ts:208–214  ·  view source on GitHub ↗
(tableName: string, isClustered: boolean)

Source from the content-addressed store, hash-verified

206}
207
208export function dropTable(tableName: string, isClustered: boolean) {
209 if (isClustered) {
210 return `DROP TABLE IF EXISTS ${tableName} ON CLUSTER '{cluster}'`;
211 }
212
213 return `DROP TABLE IF EXISTS ${tableName}`;
214}
215
216export function moveDataBetweenTables({
217 from,

Callers 3

upFunction · 0.90
downFunction · 0.90
downFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected