Home
last modified time | relevance | path

Searched refs:txn (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython2/Lib/bsddb/
Ddbtables.py220 def cursor(self, txn=None) : argument
221 return cursor_py3k(self._db.cursor(txn=txn))
223 def has_key(self, key, txn=None) : argument
225 txn=txn)
227 def put(self, key, value, flags=0, txn=None) : argument
231 return self._db.put(key, value, flags=flags, txn=txn)
233 def put_bytes(self, key, value, txn=None) : argument
235 return self._db.put(key, value, txn=txn)
237 def get(self, key, txn=None, flags=0) : argument
239 v = self._db.get(key, txn=txn, flags=flags)
[all …]
Ddbshelve.py163 def keys(self, txn=None): argument
164 if txn is not None:
165 return self.db.keys(txn)
198 def items(self, txn=None): argument
199 if txn is not None:
200 items = self.db.items(txn)
209 def values(self, txn=None): argument
210 if txn is not None:
211 values = self.db.values(txn)
220 def __append(self, value, txn=None): argument
[all …]
Ddbrecio.py35 def __init__(self, db, key, txn=None): argument
38 self.txn = txn
47 del self.db, self.txn
78 r = self.db.get(self.key, txn=self.txn, dlen=dlen, doff=self.pos)
124 self.db.put(self.key, "", txn=self.txn, dlen=self.len-size, doff=size)
134 self.db.put(self.key, s, txn=self.txn, dlen=len(s), doff=self.pos)
/external/python/cpython2/Lib/bsddb/test/
Dtest_distributed_transactions.py33 txn=self.dbenv.txn_begin()
36 txn=txn)
37 txn.commit()
67 txn = self.dbenv.txn_begin()
70 self.db.put(i, gid, txn=txn, flags=db.DB_APPEND)
72 txn.prepare(gid)
73 del txn
81 for gid,txn in recovered_txns :
83 del txn
95 for gid,txn in recovered_txns :
[all …]
Dtest_replication.py203 txn=self.dbenvMaster.txn_begin()
204 self.dbMaster.open("test", db.DB_HASH, db.DB_CREATE, 0666, txn=txn)
205 txn.commit()
215 txn=self.dbenvClient.txn_begin()
218 mode=0666, txn=txn)
220 txn.abort()
225 txn.commit()
228 txn=self.dbenvMaster.txn_begin()
229 self.dbMaster.put("ABC", "123", txn=txn)
230 txn.commit()
[all …]
Dtest_associate.py156 def addDataToDB(self, d, txn=None): argument
160 d.put(key, '|'.join(value), txn=txn)
162 def createDB(self, txn=None): argument
168 db.DB_CREATE | db.DB_THREAD | self.dbFlags, txn=txn)
246 def finish_test(self, secDB, txn=None): argument
248 vals = secDB.pget('Blues', txn=txn)
251 vals = secDB.pget('Unknown', txn=txn)
259 self.cur = self.getDB().cursor(txn)
277 self.cur = secDB.cursor(txn)
341 def txn_finish_test(self, sDB, txn): argument
[all …]
Dtest_basics.py271 self.assertEqual(d.has_key('spam', txn=None), 0)
317 txn = self.env.txn_begin()
319 txn = None
320 c = self.d.cursor(txn=txn)
455 if txn:
456 txn.commit()
491 oldcursor = self.d.cursor(txn=txn)
637 d.compact(start='abcde', stop='monty', txn=None,
713 self.txn.commit()
718 txn = self.env.txn_begin()
[all …]
Dtest_sequence.py36 self.assertEqual(None, self.seq.open(key='id', txn=None, flags=db.DB_CREATE))
42 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
43 self.assertEqual(None, self.seq.remove(txn=None, flags=0))
49 self.assertEqual(None, self.seq.open(key=key, txn=None, flags=db.DB_CREATE))
54 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
61 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
68 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
76 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
81 self.assertEqual(None, self.seq.open(key='foo', txn=None, flags=db.DB_CREATE))
95 key='id', txn=None, flags=0)
[all …]
Dtest_all.py246 def has_key(self, k, txn=None) : argument
249 return self._db.has_key(k, txn=txn)
265 def put(self, key, data, txn=None, flags=0, dlen=-1, doff=-1) : argument
270 return self._db.put(key, data, flags=flags, txn=txn, dlen=dlen,
273 def append(self, value, txn=None) : argument
276 return self._db.append(value, txn=txn)
288 def get(self, key, default="MagicCookie", txn=None, flags=0, dlen=-1, doff=-1) : argument
292 v=self._db.get(key, default=default, txn=txn, flags=flags,
295 v=self._db.get(key, txn=txn, flags=flags,
301 def pget(self, key, txn=None) : argument
[all …]
Dtest_early_close.py157 txn = dbenv.txn_begin()
159 txn=txn)
160 d.put("XXX", "yyy", txn=txn)
161 txn.commit()
162 txn = dbenv.txn_begin()
163 c1 = d.cursor(txn)
174 txn.commit()
191 txn.commit()
Dtest_dbenv.py339 txn = self.env.txn_begin()
340 self.env.log_printf(msg, txn=txn)
341 txn.commit()
347 txn = self.env.txn_begin()
348 self.env.log_printf(msg, txn=txn)
349 txn.abort() # Do not store the new message
354 txn = self.env.txn_begin()
355 self.env.log_printf(msg, txn=txn)
356 txn.commit() # Do not store the new message
414 txn = self.env.txn_begin()
[all …]
Dtest_thread.py397 txn = self.env.txn_begin(None, self.txnFlag)
401 d.put(key, self.makeData(key), txn)
404 txn.commit()
414 txn.abort()
428 txn = self.env.txn_begin(None, self.txnFlag)
429 c = d.cursor(txn)
439 txn.commit()
449 txn.abort()
Dtest_queue.py67 d.append("another one", txn=None)
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/
DJpaLocalTxnInterceptor.java59 final EntityTransaction txn = em.getTransaction(); in invoke() local
60 txn.begin(); in invoke()
68 if (rollbackIfNecessary(transactional, e, txn)) { in invoke()
69 txn.commit(); in invoke()
76 if (null != didWeStartWork.get() && !txn.isActive()) { in invoke()
85 txn.commit(); in invoke()
125 Transactional transactional, Exception e, EntityTransaction txn) { in rollbackIfNecessary() argument
147 txn.rollback(); in rollbackIfNecessary()
/external/python/cpython2/Modules/
D_bsddb.c740 static int checkTxnObj(PyObject* txnobj, DB_TXN** txn) in checkTxnObj() argument
743 *txn = NULL; in checkTxnObj()
747 *txn = ((DBTxnObject*)txnobj)->txn; in checkTxnObj()
758 static int _DB_delete(DBObject* self, DB_TXN *txn, DBT *key, int flags) in _DB_delete() argument
763 err = self->db->del(self->db, txn, key, 0); in _DB_delete()
774 static int _DB_put(DBObject* self, DB_TXN *txn, DBT *key, DBT *data, int flags) in _DB_put() argument
779 err = self->db->put(self->db, txn, key, data, flags); in _DB_put()
930 self->txn=NULL; in newDBObject()
1002 newDBCursorObject(DBC* dbc, DBTxnObject *txn, DBObject* db) in newDBCursorObject() argument
1012 if (txn && ((PyObject *)txn!=Py_None)) { in newDBCursorObject()
[all …]
Dbsddb.h162 struct DBTxnObject *txn; member
186 struct DBTxnObject *txn; member
193 DB_TXN* txn; member
239 struct DBTxnObject *txn; member
/external/tensorflow/tensorflow/core/summary/
Dsummary_db_writer.cc218 static Status Save(Sqlite* db, SqliteTransaction* txn, IdAllocator* ids, in Save() argument
222 GraphWriter saver{db, txn, graph, now, *graph_id}; in Save()
231 GraphWriter(Sqlite* db, SqliteTransaction* txn, GraphDef* graph, uint64 now, in GraphWriter() argument
233 : db_(db), txn_(txn), graph_(graph), now_(now), graph_id_(graph_id) {} in GraphWriter()
414 SqliteTransaction txn(*db); // only to increase performance in SetGraph() local
416 GraphWriter::Save(db, &txn, ids_, g.get(), now, run_id, &graph_id)); in SetGraph()
417 return txn.Commit(); in SetGraph()
657 SqliteTransaction txn(*db); in Finish() local
668 TF_RETURN_IF_ERROR(txn.Commit()); in Finish()
681 SqliteTransaction txn(*db); in Write() local
[all …]
/external/tensorflow/tensorflow/core/lib/db/
Dsqlite_test.cc259 SqliteTransaction txn(*db_); in TEST_F() local
272 SqliteTransaction txn(*db_); in TEST_F() local
277 TF_ASSERT_OK(txn.Commit()); in TEST_F()
286 SqliteTransaction txn(*db_); in TEST_F() local
291 TF_ASSERT_OK(txn.Commit()); in TEST_F()
295 TF_ASSERT_OK(txn.Commit()); in TEST_F()
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst4519 fixed a bug with bsddb.DB.stat: the flags and txn keyword arguments were
/external/guice/extensions/persist/lib/
Dhibernate3.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/hibernate/ org/ ...
/external/cldr/tools/java/org/unicode/cldr/util/data/languages/
DentityToCode.tsv1192 http://www.wikidata.org/entity/Q3515594 txn
/external/cldr/tools/java/org/unicode/cldr/util/data/
Diso-639-3_Name_Index.tab6927 txn West Tarangan Tarangan, West
Diso-639-3.tab6665 txn I L West Tarangan
Dlanguage-subtag-registry35829 Subtag: txn