Allow replication between databases rather than server #89

bmeck opened this Issue Jun 19, 2012 · 2 comments

2 participants


Right now we can replicate using:

nano.db.replicate(string, string, ...)

When given a nano Database objects this causes difficulties when wanting to replicate with something like:

var source = require('nano')('.../a')
var target = require('nano')('.../b')

In order to replicate right now, we must deconstruct a new Database object, then attempt to parse the configs properly.

Is there a reason we cannot replicate simply between source and target in the second example, and/or allow a db to reference it's server?

source.replicate(target, ...);


source.server.replicate(source, target);

Is this not what you are looking for?

@dscape dscape closed this in 158112f Jun 19, 2012

Don't worry I got it. Landed in nano@3.0.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment