Skip to content

TEXT_SCALAR_OPERATORS

const TEXT_SCALAR_OPERATORS: readonly ["eq", "ne", "contains", "startsWith", "endsWith", "like", "ilike", "notIlike"];

Defined in: filters/operators.ts:93

The single-value operators the text kind accepts: equality plus the text matchers. contains/startsWith/endsWith take a plain string (the SQL adapters escape it); like/ilike/notIlike take a raw pattern.

import { TEXT_SCALAR_OPERATORS } from "@xtandard/lib/filters";
TEXT_SCALAR_OPERATORS;
// → ["eq", "ne", "contains", "startsWith", "endsWith", "like", "ilike", "notIlike"]
(TEXT_SCALAR_OPERATORS as readonly string[]).includes("contains"); // → true