Lines Matching refs:db

9 from test_all import db, test_support, verbose, have_threads, \
24 self.env = db.DBEnv()
25 self.env.open(self.homeDir, db.DB_THREAD | db.DB_INIT_MPOOL |
26 db.DB_INIT_LOCK | db.DB_CREATE)
42 lock = self.env.lock_get(anID, "some locked thing", db.DB_LOCK_WRITE)
58 args=(db.DB_LOCK_WRITE,)))
60 args=(db.DB_LOCK_READ,)))
62 args=(db.DB_LOCK_READ,)))
64 args=(db.DB_LOCK_WRITE,)))
66 args=(db.DB_LOCK_READ,)))
68 args=(db.DB_LOCK_READ,)))
70 args=(db.DB_LOCK_WRITE,)))
72 args=(db.DB_LOCK_WRITE,)))
74 args=(db.DB_LOCK_WRITE,)))
87 self.env.set_timeout(0, db.DB_SET_LOCK_TIMEOUT)
88 self.assertEqual(self.env.get_timeout(db.DB_SET_LOCK_TIMEOUT), 0)
89 self.env.set_timeout(0, db.DB_SET_TXN_TIMEOUT)
90 self.assertEqual(self.env.get_timeout(db.DB_SET_TXN_TIMEOUT), 0)
91 self.env.set_timeout(123456, db.DB_SET_LOCK_TIMEOUT)
92 self.assertEqual(self.env.get_timeout(db.DB_SET_LOCK_TIMEOUT), 123456)
93 self.env.set_timeout(7890123, db.DB_SET_TXN_TIMEOUT)
94 self.assertEqual(self.env.get_timeout(db.DB_SET_TXN_TIMEOUT), 7890123)
97 self.env.set_timeout(0, db.DB_SET_LOCK_TIMEOUT)
98 self.env.set_timeout(0, db.DB_SET_TXN_TIMEOUT)
99 self.env.set_timeout(123456, db.DB_SET_LOCK_TIMEOUT)
100 self.env.set_timeout(7890123, db.DB_SET_TXN_TIMEOUT)
105 self.env.lock_detect(db.DB_LOCK_EXPIRE)
121 self.env.set_timeout(100000, db.DB_SET_LOCK_TIMEOUT)
125 lock = self.env.lock_get(anID, "shared lock", db.DB_LOCK_WRITE)
127 self.assertRaises(db.DBLockNotGrantedError,
128 self.env.lock_get,anID2, "shared lock", db.DB_LOCK_READ)
146 if db.version() >= (4,6):
156 if lockType == db.DB_LOCK_WRITE: