MCPcopy
hub / github.com/chartdb/chartdb / isAlreadyQuoted

Function isAlreadyQuoted

src/lib/data/sql-export/export-sql-script.ts:105–111  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

103): string => {
104 // Check if a name is already quoted
105 const isAlreadyQuoted = (name: string) => {
106 return (
107 (name.startsWith('"') && name.endsWith('"')) ||
108 (name.startsWith('`') && name.endsWith('`')) ||
109 (name.startsWith('[') && name.endsWith(']'))
110 );
111 };
112
113 // Only add quotes if needed and not already quoted
114 const quoteIfNeeded = (name: string) => {

Callers 2

quoteIfNeededFunction · 0.85
getQuotedFieldNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected