MCPcopy
hub / github.com/etcd-io/bbolt / ID

Method ID

tx.go:68–73  ·  view source on GitHub ↗

ID returns the transaction id.

()

Source from the content-addressed store, hash-verified

66
67// ID returns the transaction id.
68func (tx *Tx) ID() int {
69 if tx == nil || tx.meta == nil {
70 return -1
71 }
72 return int(tx.meta.Txid())
73}
74
75// DB returns a reference to the database that created the transaction.
76func (tx *Tx) DB() *DB {

Callers 5

CommitMethod · 0.95
testSimulateFunction · 0.80
executeReadFunction · 0.80
executeWriteFunction · 0.80
executeDeleteFunction · 0.80

Calls 1

TxidMethod · 0.80

Tested by 4

testSimulateFunction · 0.64
executeReadFunction · 0.64
executeWriteFunction · 0.64
executeDeleteFunction · 0.64