Esempio n. 1
0
 def batch_get(self):
     db = Database('backbench')
     doc_ids = ['ballentine', 'holhurst', 'swain']
     docs = yield db.get(doc_ids)
     
     print docs[0]
Esempio n. 2
0
    def batch_get(self):
        db = Database('backbench')
        doc_ids = ['ballentine', 'holhurst', 'swain']
        docs = yield db.get(doc_ids)

        print docs[0]
Esempio n. 3
0
 def doc_get(self):
     db = Database('underlings')
     ollie = yield db.get('lackey-129')
     
     print ollie
     print 'Mr. %(first)s %(last)s can be found at %(office)s.' % ollie
Esempio n. 4
0
    def doc_get(self):
        db = Database('underlings')
        ollie = yield db.get('lackey-129')

        print ollie
        print 'Mr. %(first)s %(last)s can be found at %(office)s.' % ollie