UNPKG

rawsql-ts

Version:

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

26 lines (25 loc) 1 kB
import { SelectQuery } from "./SelectQuery"; import { SimpleSelectQuery } from "./SimpleSelectQuery"; import { SqlComponent } from "./SqlComponent"; import { TupleExpression } from "./ValueComponent"; /** * Represents a VALUES query in SQL. */ export declare class ValuesQuery extends SqlComponent implements SelectQuery { static kind: symbol; tuples: TupleExpression[]; /** * Column aliases for the VALUES query. * These represent the logical column names for each value tuple. * Note: This property is optional and is not referenced during SQL output, but is used when converting to a SimpleSelectQuery. */ columnAliases: string[] | null; constructor(tuples: TupleExpression[], columnAliases?: string[] | null); toSimpleSelectQuery(): SimpleSelectQuery; /** * Sets the value of a parameter by name in this query. * @param name Parameter name * @param value Value to set */ setParameter(name: string, value: any): this; }