UNPKG

ravendb

Version:
24 lines 805 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BulkInsertConventions = void 0; const index_js_1 = require("../../Exceptions/index.js"); class BulkInsertConventions { _notFrozen; _timeSeriesBatchSize; constructor(notFrozen) { this._timeSeriesBatchSize = 1024; this._notFrozen = notFrozen; } get timeSeriesBatchSize() { return this._timeSeriesBatchSize; } set timeSeriesBatchSize(batchSize) { this._notFrozen(); if (batchSize <= 0) { (0, index_js_1.throwError)("InvalidArgumentException", "BatchSize must be positive"); } this._timeSeriesBatchSize = batchSize; } } exports.BulkInsertConventions = BulkInsertConventions; //# sourceMappingURL=BulkInsertConventions.js.map