Skip to content

Commit

Permalink
Txn: expose underlying *C.MDB_txn (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis authored Nov 6, 2020
1 parent 28dcff8 commit 19c9c34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lmdb/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,3 +577,8 @@ func (txn *Txn) DCmp(dbi DBI, a []byte, b []byte) int {
}
return 0
}

// Underlying *C.MDB_txn
func (txn *Txn) CHandle() unsafe.Pointer {
return unsafe.Pointer(txn._txn)
}

0 comments on commit 19c9c34

Please sign in to comment.