UNPKG

664 BTypeScriptView Raw
1import type { AbstractDialect } from '../dialects/abstract/index.js';
2type BindOrReplacements = {
3 [key: string]: unknown;
4} | unknown[];
5/**
6 * Inlines replacements in places where they would be valid SQL values.
7 *
8 * @param sqlString The SQL that contains the replacements
9 * @param dialect The dialect of the SQL
10 * @param replacements if provided, this method will replace ':named' replacements & positional replacements (?)
11 *
12 * @returns The SQL with replacements rewritten in their dialect-specific syntax.
13 */
14export declare function injectReplacements(sqlString: string, dialect: AbstractDialect, replacements: BindOrReplacements): string;
15export {};