(name: string)
| 112 | |
| 113 | // Only add quotes if needed and not already quoted |
| 114 | const quoteIfNeeded = (name: string) => { |
| 115 | if (isAlreadyQuoted(name)) { |
| 116 | return name; |
| 117 | } |
| 118 | const needsQuoting = /[^a-zA-Z0-9_]/.test(name) || isDBMLFlow; |
| 119 | return needsQuoting ? `"${name}"` : name; |
| 120 | }; |
| 121 | |
| 122 | if (table.schema) { |
| 123 | const quotedSchema = quoteIfNeeded(table.schema); |
no test coverage detected