MCPcopy Create free account
hub / github.com/bytebase/dbhub / plainToken

Function plainToken

src/utils/sql-parser.ts:11–13  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

9}
10
11function plainToken(i: number): SQLToken {
12 return { type: TokenType.Plain, end: i + 1 };
13}
14
15function scanSingleLineComment(sql: string, i: number): SQLToken | null {
16 if (sql[i] !== "-" || sql[i + 1] !== "-") { return null; }

Callers 5

scanTokenAnsiFunction · 0.85
scanTokenPostgresFunction · 0.85
scanTokenMySQLFunction · 0.85
scanTokenSQLiteFunction · 0.85
scanTokenSQLServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected