({
tableName,
isClustered,
ttl,
}: {
tableName: string;
isClustered: boolean;
ttl: string;
})
| 116 | } |
| 117 | |
| 118 | export const modifyTTL = ({ |
| 119 | tableName, |
| 120 | isClustered, |
| 121 | ttl, |
| 122 | }: { |
| 123 | tableName: string; |
| 124 | isClustered: boolean; |
| 125 | ttl: string; |
| 126 | }) => { |
| 127 | if (isClustered) { |
| 128 | return `ALTER TABLE ${replicated(tableName)} ON CLUSTER '{cluster}' MODIFY TTL ${ttl}`; |
| 129 | } |
| 130 | |
| 131 | return `ALTER TABLE ${tableName} MODIFY TTL ${ttl}`; |
| 132 | }; |
| 133 | |
| 134 | /** |
| 135 | * Generates ALTER TABLE statements for adding columns |
no test coverage detected