UNPKG

rawsql-ts

Version:

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

16 lines 782 B
// Represents a DELETE query in SQL. // Supports optional USING, WHERE, and RETURNING clauses alongside WITH. import { SqlComponent } from "./SqlComponent"; export class DeleteQuery extends SqlComponent { constructor(params) { var _a, _b, _c, _d; super(); this.withClause = (_a = params.withClause) !== null && _a !== void 0 ? _a : null; this.deleteClause = params.deleteClause; this.usingClause = (_b = params.usingClause) !== null && _b !== void 0 ? _b : null; this.whereClause = (_c = params.whereClause) !== null && _c !== void 0 ? _c : null; this.returningClause = (_d = params.returning) !== null && _d !== void 0 ? _d : null; } } DeleteQuery.kind = Symbol("DeleteQuery"); //# sourceMappingURL=DeleteQuery.js.map