Exemple #1
0
 def setUpClass(cls):
     cls.db = shelfdb.open('test_data/db')
Exemple #2
0
 def __init__(self, host='127.0.0.1', port=17000, db_name='db'):
     self.host = host
     self.port = port
     self.db_name = db_name
     self.shelfdb = shelfdb.open(db_name)
Exemple #3
0
 def setUpClass(cls):
     cls.db = shelfdb.open('test_data/db')
     cls.assertIsInstance(cls, cls.db, shelfdb.shelf.DB)
Exemple #4
0
import shelfdb

db = shelfdb.open('./data/db')
db.shelf('users')
db.shelf('countries')

x = db.shelf("countries").filter(lambda u: u)

for us in x:
    print(us)