Skip to content

Doesn't include revisions after loaded?? #68

@Progklui

Description

@Progklui

Hi there,

I am experiencing a pretty strange issue. I am saving my pouchdb database with the following code:

location = locCurrent+'/currentDatabase.txt';

fs.existsSync(locCurrent) || fs.mkdirSync(locCurrent);

var wsCurrent = fs.createWriteStream(location);

pdb.dump(wsCurrent, {revs_: true}).then(function (res) {
  console.log(res);
});

I load the database with the following code:

var rs = fs.createReadStream(locationDatabase);

pdb.load(rs).then(function (res) {
  console.log(res);
  
  implementIndex(locationDatabase); 
  location.href = "index.html";
}).catch(function (err) {
  console.log(err);
});

Somehow I can't read the revisions which have been created in the database before the dump in the loaded database-they somehow get lost. Before loading the database all the content of it gets erased for info.

Could anyone please help me.

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions