UNPKG

ravendb

Version:
27 lines 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ClusterTransactionOperations = void 0; const ClusterTransactionOperationsBase_js_1 = require("./ClusterTransactionOperationsBase.js"); const TypeUtil_js_1 = require("../../Utility/TypeUtil.js"); const LazyClusterTransactionOperations_js_1 = require("./Operations/Lazy/LazyClusterTransactionOperations.js"); class ClusterTransactionOperations extends ClusterTransactionOperationsBase_js_1.ClusterTransactionOperationsBase { constructor(session) { super(session); } get lazily() { return new LazyClusterTransactionOperations_js_1.LazyClusterTransactionOperations(this._session); } async getCompareExchangeValue(key, type) { return this._getCompareExchangeValueInternal(key, type); } getCompareExchangeValues(keysOrStartsWith, type, start, pageSize) { if (TypeUtil_js_1.TypeUtil.isArray(keysOrStartsWith)) { return this._getCompareExchangeValuesInternal(keysOrStartsWith, type); } else { return this._getCompareExchangeValuesInternal(keysOrStartsWith, type, start ?? 0, pageSize ?? 25); } } } exports.ClusterTransactionOperations = ClusterTransactionOperations; //# sourceMappingURL=ClusterTransactionOperations.js.map