UNPKG

@decaf-ts/core

Version:

Core persistence module for the decaf framework

56 lines 2.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PreparedStatementKeys = exports.GroupOperator = exports.Operator = void 0; const types_1 = require("./types.cjs"); /** * @description Comparison operators for query conditions * @summary Enum defining the available operators for comparing values in database queries * @enum {string} * @readonly * @memberOf module:core */ 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 || (exports.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 */ 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 || (exports.GroupOperator = GroupOperator = {})); var PreparedStatementKeys; (function (PreparedStatementKeys) { PreparedStatementKeys["LIST_BY"] = "listBy"; PreparedStatementKeys["FIND_BY"] = "findBy"; PreparedStatementKeys["FIND_ONE_BY"] = "findOneBy"; PreparedStatementKeys["PAGE_BY"] = "paginateBy"; })(PreparedStatementKeys || (exports.PreparedStatementKeys = PreparedStatementKeys = {})); //# sourceMappingURL=constants.js.map