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

Function stripIdentifierQuotes

src/utils/sqlAnalysis.ts:10–14  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

8// Removes wrapping SQL identifier quotes/backticks.
9// Unquoted identifiers are normalized to lowercase.
10function stripIdentifierQuotes(token: string): string {
11 const q = token[0];
12 if (q === '"' || q === '`') return token.slice(1, -1).replaceAll(q + q, q);
13 return token.toLowerCase();
14}
15
16// Isolate the FROM/JOIN section of a SQL statement so clause keywords
17// (WHERE, HAVING, etc.) are never present when the alias-capture regex runs.

Callers 1

parseTablesFromQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected