Files
cosmos-explorer/src/Explorer/Tables/CqlUtilities.ts
2020-10-12 13:00:11 -05:00

13 lines
251 B
TypeScript

export function getQuotedCqlIdentifier(identifier: string): string {
let result = identifier;
if (!identifier) {
return result;
}
if (identifier.includes('"')) {
result = identifier.replace(/"/g, '""');
}
return `"${result}"`;
}