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

Function wrapIterator

lib/index.js:4150–4159  ·  view source on GitHub ↗
(iterator)

Source from the content-addressed store, hash-verified

4148 opts.valueAsBuffer = codec.valueAsBuffer(opts);
4149
4150 function wrapIterator(iterator) {
4151 return {
4152 next: function (cb) {
4153 return iterator.next(cb);
4154 },
4155 end: function (cb) {
4156 iterator.end(cb);
4157 }
4158 };
4159 }
4160
4161 return wrapIterator(db.db.iterator(opts));
4162 }

Callers 1

nutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…