(token: string)
| 8 | // Removes wrapping SQL identifier quotes/backticks. |
| 9 | // Unquoted identifiers are normalized to lowercase. |
| 10 | function 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. |
no outgoing calls
no test coverage detected