예제 #1
0
파일: examples.py 프로젝트: 0x68/corduroy
 def replicator_convenience(self):
     local_db = Database('localdb')
     yield local_db.push(remote_db, 
                         "http://elsewhere.com:5984/remotedb", 
                         continuous=True, 
                         _id='local-to-remote')
예제 #2
0
 def replicator_convenience(self):
     local_db = Database('localdb')
     yield local_db.push(remote_db,
                         "http://elsewhere.com:5984/remotedb",
                         continuous=True,
                         _id='local-to-remote')
예제 #3
0
파일: examples.py 프로젝트: 0x68/corduroy
 def replicate_push(self):
     local_db = Database('localdb')
     remote_db = Database('http://elsewhere.com:5984/remotedb')
     yield local_db.push(remote_db)
     yield local_db.pull(remote_db)
예제 #4
0
 def replicate_push(self):
     local_db = Database('localdb')
     remote_db = Database('http://elsewhere.com:5984/remotedb')
     yield local_db.push(remote_db)
     yield local_db.pull(remote_db)