ravendb
Version:
RavenDB client for Node.js
20 lines • 623 B
JavaScript
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