MCPcopy
hub / github.com/apache/pouchdb / batch

Method batch

lib/index.es.js:4893–4906  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

4891 }
4892
4893 batch(batch) {
4894 for (var i = 0, len = batch.length; i < len; i++) {
4895 var operation = batch[i];
4896
4897 var cache = getCacheFor(this, operation.prefix);
4898
4899 if (operation.type === 'put') {
4900 cache.set(operation.key, operation.value);
4901 } else {
4902 cache.set(operation.key, null);
4903 }
4904 }
4905 this._batch = this._batch.concat(batch);
4906 }
4907
4908 execute(db, callback) {
4909 var keys = new Set();

Callers 8

LevelPouchFunction · 0.95
nutFunction · 0.45
executeMethod · 0.45
finishFunction · 0.45
saveAttFunction · 0.45
saveAttachmentFunction · 0.45
completeFunction · 0.45
doMigrationTwoFunction · 0.45

Calls 1

getCacheForFunction · 0.70

Tested by

no test coverage detected