예제 #1
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)
예제 #2
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)