UNPKG

ravendb

Version:
23 lines 1.02 kB
import { ClusterTransactionOperationsBase } from "./ClusterTransactionOperationsBase.js"; import { TypeUtil } from "../../Utility/TypeUtil.js"; import { LazyClusterTransactionOperations } from "./Operations/Lazy/LazyClusterTransactionOperations.js"; export class ClusterTransactionOperations extends ClusterTransactionOperationsBase { constructor(session) { super(session); } get lazily() { return new LazyClusterTransactionOperations(this._session); } async getCompareExchangeValue(key, type) { return this._getCompareExchangeValueInternal(key, type); } getCompareExchangeValues(keysOrStartsWith, type, start, pageSize) { if (TypeUtil.isArray(keysOrStartsWith)) { return this._getCompareExchangeValuesInternal(keysOrStartsWith, type); } else { return this._getCompareExchangeValuesInternal(keysOrStartsWith, type, start ?? 0, pageSize ?? 25); } } } //# sourceMappingURL=ClusterTransactionOperations.js.map