UNPKG

rawsql-ts

Version:

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

21 lines (20 loc) 663 B
/** * This decorator formats parameter tokens according to DBMS-specific rules. * It supports prefix/suffix, and parameter style (named, indexed, anonymous). */ export declare class ParameterDecorator { prefix: string; suffix: string; style: 'named' | 'indexed' | 'anonymous'; constructor(options?: { prefix?: string; suffix?: string; style?: 'named' | 'indexed' | 'anonymous'; }); /** * Decorate a parameter token with DBMS-specific format. * @param token The parameter token * @param index The parameter index (for indexed/anonymous) */ decorate(text: string, index: number): string; }