MCPcopy Index your code
hub / github.com/bytebase/dbhub / getScanner

Function getScanner

src/utils/sql-parser.ts:196–198  ·  view source on GitHub ↗
(dialect?: ConnectorType)

Source from the content-addressed store, hash-verified

194};
195
196function getScanner(dialect?: ConnectorType): TokenScanner {
197 return dialect ? (dialectScanners[dialect] ?? scanTokenAnsi) : scanTokenAnsi;
198}
199
200/**
201 * Replace comments, string literals, and dialect-specific quoted blocks with a single space each.

Callers 2

stripCommentsAndStringsFunction · 0.85
splitSQLStatementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected