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

Interface SQLToken

src/utils/sql-parser.ts:5–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3const TokenType = { Plain: 0, Comment: 1, QuotedBlock: 2 } as const;
4
5interface SQLToken {
6 type: number;
7 /** Position just past the end of this token (the next unprocessed character) */
8 end: number;
9}
10
11function plainToken(i: number): SQLToken {
12 return { type: TokenType.Plain, end: i + 1 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected