Skip to content

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.

Parameter Type
literal string

string