MCPcopy Create free account
hub / github.com/PyTables/PyTables / _create_transaction

Method _create_transaction

tables/file.py:2378–2383  ·  view source on GitHub ↗
(
        self, troot: TransactionGroupG, tid: int
    )

Source from the content-addressed store, hash-verified

2376 return tgroup
2377
2378 def _create_transaction(
2379 self, troot: TransactionGroupG, tid: int
2380 ) -> TransactionG:
2381 return TransactionG(
2382 troot, _trans_name % tid, f"Transaction number {tid}", new=True
2383 )
2384
2385 def _create_mark(self, trans: TransactionG, mid: int) -> MarkG:
2386 return MarkG(trans, _mark_name % mid, "Mark number %d" % mid, new=True)

Callers 1

enable_undoMethod · 0.95

Calls 1

TransactionGClass · 0.85

Tested by

no test coverage detected