Source

query/constants.ts

/**
 * @description Comparison operators for query conditions
 * @summary Enum defining the available operators for comparing values in database queries
 * @enum {string}
 * @readonly
 * @memberOf module:core
 */
export enum Operator {
  /** Equal comparison (=) */
  EQUAL = "EQUAL",
  /** Not equal comparison (!=) */
  DIFFERENT = "DIFFERENT",
  /** Greater than comparison (>) */
  BIGGER = "BIGGER",
  /** Greater than or equal comparison (>=) */
  BIGGER_EQ = "BIGGER_EQ",
  /** Less than comparison (<) */
  SMALLER = "SMALLER",
  /** Less than or equal comparison (<=) */
  SMALLER_EQ = "SMALLER_EQ",
  // BETWEEN = "BETWEEN",
  /** Negation operator (NOT) */
  NOT = "NOT",
  /** Inclusion operator (IN) */
  IN = "IN",
  // IS = "IS",
  /** Regular expression matching */
  REGEXP = "REGEXP",
}

/**
 * @description Logical operators for combining query conditions
 * @summary Enum defining the available operators for grouping multiple conditions in database queries
 * @enum {string}
 * @readonly
 * @memberOf module:core
 */
export enum GroupOperator {
  /** Logical AND operator - all conditions must be true */
  AND = "AND",
  /** Logical OR operator - at least one condition must be true */
  OR = "OR",
}