MCPcopy Index your code
hub / github.com/simstudioai/sim / quoteIdentifier

Function quoteIdentifier

apps/sim/lib/data-drains/destinations/snowflake.ts:189–191  ·  view source on GitHub ↗

* Quotes a Snowflake identifier so that whatever case the user typed is * preserved exactly. Without quoting, Snowflake folds unquoted identifiers * to uppercase, which silently breaks any table whose canonical name was * created with quoted mixed-case. Embedded `"` is escaped as `""`.

(name: string)

Source from the content-addressed store, hash-verified

187 * created with quoted mixed-case. Embedded `"` is escaped as `""`.
188 */
189function quoteIdentifier(name: string): string {
190 return `"${name.replace(/"/g, '""')}"`
191}
192
193function buildStatement(config: SnowflakeDestinationConfig, rowCount: number): string {
194 const column = quoteIdentifier(config.column ?? 'DATA')

Callers 1

buildStatementFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected