OpenTransaction opens an atomic DB transaction. Only one transaction can be opened at a time. Write will be blocked until the transaction is committed or discarded. The returned transaction handle is goroutine-safe.

The transaction must be closed once done, either by committing or discarding the transaction. Closing the DB will discard open transaction.

OpenTransaction is referenced in 0 repositories