rawsql-ts
Version:
High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.
13 lines (12 loc) • 582 B
TypeScript
import { SelectQuery } from '../models/SelectQuery';
import { WithClause } from '../models/Clause';
/**
* Utility to manage WITH clause placement for statements that promote the
* CTE definitions outside of the SELECT body (for example, INSERT).
*/
export declare class SelectQueryWithClauseHelper {
static getWithClause(selectQuery: SelectQuery | null): WithClause | null;
static setWithClause(selectQuery: SelectQuery, withClause: WithClause | null): void;
static detachWithClause(selectQuery: SelectQuery): WithClause | null;
private static findClauseOwner;
}