MCPcopy
hub / github.com/canopy-network/canopy / Txn

Struct Txn

store/txn.go:35–44  ·  view source on GitHub ↗

Txn is an in memory database transaction

Source from the content-addressed store, hash-verified

33
34// Txn is an in memory database transaction
35type Txn struct {
36 reader TxnReaderI // memory store to Read() from
37 writer TxnWriterI // memory store to Flush() to
38 prefix []byte // prefix for keys in this txn
39 state bool // whether the flush should go to the HSS and LSS
40 sort bool // whether to sort the keys in the txn; used for iteration
41 writeVersion uint64 // the version to commit the data to
42 seek bool // whether to use seek or linear iteration (required for pebbleDB implementation)
43 txn *txn // the internal structure maintaining the write operations
44}
45
46// txn internal structure maintains the write operations sorted lexicographically by keys
47type txn struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected