UNPKG

ravendb

Version:
20 lines 623 B
import { throwError } from "../../Exceptions/index.js"; export 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) { throwError("InvalidArgumentException", "BatchSize must be positive"); } this._timeSeriesBatchSize = batchSize; } } //# sourceMappingURL=BulkInsertConventions.js.map