MCPcopy Create free account
hub / github.com/apache/pouchdb / sync

Function sync

lib/index.js:10384–10397  ·  view source on GitHub ↗
(src, target, opts, callback)

Source from the content-addressed store, hash-verified

10382}
10383
10384function sync(src, target, opts, callback) {
10385 if (typeof opts === 'function') {
10386 callback = opts;
10387 opts = {};
10388 }
10389 if (typeof opts === 'undefined') {
10390 opts = {};
10391 }
10392 opts = clone(opts);
10393 opts.PouchConstructor = opts.PouchConstructor || this;
10394 src = toPouch(src, opts);
10395 target = toPouch(target, opts);
10396 return new Sync(src, target, opts, callback);
10397}
10398
10399class Sync extends EE {
10400 constructor(src, target, opts, callback) {

Callers

nothing calls this directly

Calls 2

cloneFunction · 0.70
toPouchFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…