Replication from/to couchDb
daw415 opened this issue · comments
Hello,
I would like define whata data should be send to cuchDb like this in ionic :
this.db.replicate.to(this.remote, optionsTo)
this.db.replicate.from(this.remote, this.optionsFrom)
let optionsTo = {
live: true,
retry: true,
continuous: true,
filter: function (doc) {
return doc._id.startsWith("ImportantData")
}
};
It is possible in sporran ?
Sporran is built on Wilt which is the couchdb interface, Wilt has a 'updateChangeNotificationParameters' method where you can change database sync parameters however you need to check if it will do what you need above.
Thanks for answer.
In method 'updateChangeNotificationParameters' I can't see options for filter which data should bee synch.
I conclude that at the moment it's impossible in sporran / wilt.
Well, shame.