UNPKG

rawsql-ts

Version:

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

14 lines (13 loc) 523 B
import { SqlComponent } from "../models/SqlComponent"; export declare class DDLGeneralizer { /** * Generalizes DDL statements by moving constraints from CREATE TABLE to ALTER TABLE statements. * This normalizes the DDL for easier comparison. * * @param ast List of SQL components (DDL statements) * @returns Generalized list of SQL components */ static generalize(ast: SqlComponent[]): SqlComponent[]; private static splitCreateTable; private static columnToTableConstraint; }