rawsql-ts
Version:
High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.
11 lines (10 loc) • 446 B
TypeScript
/**
* Parses a table name through the SQL parser so all supported identifier
* syntaxes (quoted, bracketed, backtick) converge to a consistent key.
*/
export declare const normalizeTableName: (tableName: string) => string;
/**
* For schema-sensitive matching we no longer drop qualifiers; a single
* normalized key is sufficient and safer than heuristic variants.
*/
export declare const tableNameVariants: (tableName: string) => string[];