MCPcopy Create free account
hub / github.com/TabularisDB/tabularis / getIdentifierQuote

Function getIdentifierQuote

src/utils/sqlGenerator.ts:63–68  ·  view source on GitHub ↗
(driver: DriverCapabilities | DatabaseDriver)

Source from the content-addressed store, hash-verified

61 * a legacy string driver ID (MySQL/MariaDB use backticks, others use double quotes).
62 */
63export function getIdentifierQuote(driver: DriverCapabilities | DatabaseDriver): string {
64 if (typeof driver === 'object') {
65 return driver.identifier_quote || '"';
66 }
67 return driver === 'mysql' || driver === 'mariadb' ? '`' : '"';
68}
69
70/**
71 * Generates column definition SQL for a single column.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected