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

Function createDatabase

packages/db/src/clickhouse/migration.ts:56–62  ·  view source on GitHub ↗
(name: string, isClustered: boolean)

Source from the content-addressed store, hash-verified

54});
55
56export function createDatabase(name: string, isClustered: boolean) {
57 if (isClustered) {
58 return `CREATE DATABASE IF NOT EXISTS ${name} ON CLUSTER '{cluster}'`;
59 }
60
61 return `CREATE DATABASE IF NOT EXISTS ${name}`;
62}
63
64/**
65 * Creates SQL statements for table creation in ClickHouse

Callers 1

upFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected