rawsql-ts
Version:
High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.
20 lines (19 loc) • 772 B
TypeScript
export declare class DDLToFixtureConverter {
/**
* Converts DDL statements (CREATE TABLE) in the provided SQL text to a Fixture JSON object.
* Ignores non-DDL statements and parse errors.
*
* @param ddlSql The SQL text containing CREATE TABLE statements.
* @returns A Record representing the Fixture JSON.
*/
/**
* Converts DDL statements (CREATE TABLE) in the provided SQL text to a Fixture JSON object.
* Ignores non-DDL statements and parse errors.
*
* @param ddlSql The SQL text containing CREATE TABLE statements.
* @returns A Record representing the Fixture JSON.
*/
static convert(ddlSql: string): Record<string, any>;
private static extractValue;
private static formatDefaultValue;
}