(sql: string, i: number)
| 117 | } |
| 118 | |
| 119 | function scanBacktickQuotedIdentifier(sql: string, i: number): SQLToken | null { |
| 120 | if (sql[i] !== "`") { return null; } |
| 121 | let j = i + 1; |
| 122 | while (j < sql.length) { |
| 123 | if (sql[j] === "`" && sql[j + 1] === "`") { j += 2; } |
| 124 | else if (sql[j] === "`") { j++; break; } |
| 125 | else { j++; } |
| 126 | } |
| 127 | return { type: TokenType.QuotedBlock, end: j }; |
| 128 | } |
| 129 | |
| 130 | function scanBracketQuotedIdentifier(sql: string, i: number): SQLToken | null { |
| 131 | if (sql[i] !== "[") { return null; } |
no outgoing calls
no test coverage detected