diff --git a/lib/index.js b/lib/index.js index abc57b9..6dc83a9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -37,7 +37,7 @@ exports.plugin.dump = utils.toPromise(function (writableStream, opts, callback) // db.name replaced db._db_name in pouch 6.0.0 /* istanbul ignore next */ var dbName = self.name || self._db_name; - var output = new PouchDB(dbName, { + var output = new PouchDB('WS$' + dbName, { adapter: 'writableStream' }); output.setupStream(writableStream); diff --git a/lib/writable-stream.js b/lib/writable-stream.js index 31df6eb..d8bd46d 100644 --- a/lib/writable-stream.js +++ b/lib/writable-stream.js @@ -26,6 +26,8 @@ function WritableStreamPouch(opts, callback) { api.ndj.pipe(stream); }; + api._remote = true; + /* istanbul ignore next */ api.type = function () { return 'writableStream';