Lines Matching refs:db

10 from test_all import db, dbshelve, test_support, verbose, have_threads, \
82 self.env = db.DBEnv()
83 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
96 dupDB = db.DB(self.env)
97 dupDB.set_flags(db.DB_DUP)
98 dupDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE)
100 secDB = db.DB(self.env)
101 secDB.open(self.filename, "secondary", db.DB_BTREE, db.DB_CREATE)
108 except db.DBError:
117 @unittest.skipUnless(db.version() >= (4, 6), 'Needs 4.6+')
119 db1 = db.DB(self.env)
120 db1.open('bad.db', "a.db", db.DB_BTREE, db.DB_CREATE)
121 db2 = db.DB(self.env)
122 db2.open('bad.db', "b.db", db.DB_BTREE, db.DB_CREATE)
146 self.env = db.DBEnv()
147 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL |
148 db.DB_INIT_LOCK | db.DB_THREAD | self.envFlags)
165 self.primary = db.DB(self.env)
168 db.DB_CREATE | db.DB_THREAD | self.dbFlags, txn=txn)
187 self.secDB = db.DB(self.env)
188 self.secDB.set_flags(db.DB_DUP)
190 self.secDB.open(self.filename, "secondary", db.DB_BTREE,
191 db.DB_CREATE | db.DB_THREAD | self.dbFlags)
210 self.secDB = db.DB(self.env)
211 self.secDB.set_flags(db.DB_DUP)
212 self.secDB.open(self.filename, "secondary", db.DB_BTREE,
213 db.DB_CREATE | db.DB_THREAD | self.dbFlags)
216 self.getDB().associate(self.secDB, getGenre, db.DB_CREATE)
228 if db.version() >= (4, 6):
281 vals = self.cur.pget('Unknown', flags=db.DB_LAST)
288 vals = self.cur.pget('Unknown', data='wrong value', flags=db.DB_GET_BOTH)
311 return db.DB_DONOTINDEX
326 dbtype = db.DB_HASH
329 dbtype = db.DB_BTREE
332 dbtype = db.DB_RECNO
338 envFlags = db.DB_INIT_TXN
361 self.secDB = db.DB(self.env)
362 self.secDB.set_flags(db.DB_DUP)
364 self.secDB.open(self.filename, "secondary", db.DB_BTREE,
365 db.DB_CREATE | db.DB_THREAD, txn=txn)
399 return db.DB_DONOTINDEX
405 dbtype = db.DB_HASH
408 dbtype = db.DB_BTREE
411 dbtype = db.DB_RECNO
446 dbtype = db.DB_HASH
449 dbtype = db.DB_BTREE
452 dbtype = db.DB_RECNO