@adonis-agora/filter
Version:
Server-side query filtering/sorting/pagination for AdonisJS — Spatie-style input, a Lucid adapter, and field allow-listing. Part of the Agora ecosystem.
10 lines • 441 B
TypeScript
/**
* Escapes special characters in a LIKE pattern value.
*
* @param value - The raw string to escape.
* @param dialect - The SQL dialect to target.
* - `'standard'` (default): escapes `%`, `_`, and `\` with a backslash.
* - `'mssql'`: escapes `%`, `_`, and `[` using bracket notation (`[$&]`).
*/
export declare function escapeLike(value: string, dialect?: 'standard' | 'mssql'): string;
//# sourceMappingURL=escape-like.d.ts.map