UNPKG

rawsql-ts

Version:

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

20 lines (19 loc) 723 B
import { SqlComponent } from "./SqlComponent"; import { SelectQuery } from "./SelectQuery"; import { InsertClause, ReturningClause } from "./Clause"; export declare class InsertQuery extends SqlComponent { static kind: symbol; insertClause: InsertClause; selectQuery: SelectQuery | null; returningClause: ReturningClause | null; /** * @param params.insertClause InsertClause instance (target table and columns) * @param params.selectQuery SELECT/VALUES query (required) * @param params.returning Optional RETURNING clause */ constructor(params: { insertClause: InsertClause; selectQuery?: SelectQuery | null; returning?: ReturningClause | null; }); }