escapeLike
function escapeLike(literal): string;Defined in: src/storage/util.ts:31
Escape a literal prefix for LIKE … ESCAPE '!'. ! (not \) because a backslash inside a string
literal is itself an escape on MySQL, which makes ESCAPE '\' a syntax error there; ! means
the same on every dialect.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
literal |
string |
Returns
Section titled “Returns”string