UNPKG

rawsql-ts

Version:

[beta]High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.

11 lines (10 loc) 465 B
/** * Type definition for a function that resolves column names from a table name. * * This is used to provide table structure information (column names) for physical tables * when expanding wildcard selectors (e.g., table.*) in SQL query analysis. * * @param tableName The name of the table to resolve columns for. * @returns An array of column names (strings) for the specified table. */ export type TableColumnResolver = (tableName: string) => string[];