(name: string, isClustered: boolean)
| 54 | }); |
| 55 | |
| 56 | export 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 |