UNPKG

@decaf-ts/core

Version:

Core persistence module for the decaf framework

53 lines 1.95 kB
import { QueryClause } from "./types.js"; /** * @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 var Operator; (function (Operator) { /** Equal comparison (=) */ Operator["EQUAL"] = "EQUAL"; /** Not equal comparison (!=) */ Operator["DIFFERENT"] = "DIFFERENT"; /** Greater than comparison (>) */ Operator["BIGGER"] = "BIGGER"; /** Greater than or equal comparison (>=) */ Operator["BIGGER_EQ"] = "BIGGER_EQ"; /** Less than comparison (<) */ Operator["SMALLER"] = "SMALLER"; /** Less than or equal comparison (<=) */ Operator["SMALLER_EQ"] = "SMALLER_EQ"; // BETWEEN = "BETWEEN", /** Negation operator (NOT) */ Operator["NOT"] = "NOT"; /** Inclusion operator (IN) */ Operator["IN"] = "IN"; // IS = "IS", /** Regular expression matching */ Operator["REGEXP"] = "REGEXP"; })(Operator || (Operator = {})); /** * @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 var GroupOperator; (function (GroupOperator) { /** Logical AND operator - all conditions must be true */ GroupOperator["AND"] = "AND"; /** Logical OR operator - at least one condition must be true */ GroupOperator["OR"] = "OR"; })(GroupOperator || (GroupOperator = {})); export var PreparedStatementKeys; (function (PreparedStatementKeys) { PreparedStatementKeys["LIST_BY"] = "listBy"; PreparedStatementKeys["FIND_BY"] = "findBy"; PreparedStatementKeys["FIND_ONE_BY"] = "findOneBy"; PreparedStatementKeys["PAGE_BY"] = "paginateBy"; })(PreparedStatementKeys || (PreparedStatementKeys = {})); //# sourceMappingURL=constants.js.map