MCPcopy Index your code
hub / github.com/apache/pouchdb / batch

Method batch

lib/index.js:4898–4911  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

4896 }
4897
4898 batch(batch) {
4899 for (var i = 0, len = batch.length; i < len; i++) {
4900 var operation = batch[i];
4901
4902 var cache = getCacheFor(this, operation.prefix);
4903
4904 if (operation.type === 'put') {
4905 cache.set(operation.key, operation.value);
4906 } else {
4907 cache.set(operation.key, null);
4908 }
4909 }
4910 this._batch = this._batch.concat(batch);
4911 }
4912
4913 execute(db, callback) {
4914 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