MCPcopy Create free account
hub / github.com/cloudwan/gohan / BeginTx

Method BeginTx

server/transaction_commit_informer.go:56–62  ·  view source on GitHub ↗

BeginTx wraps transaction object with sync

(ctx context.Context, options *transaction.TxOptions)

Source from the content-addressed store, hash-verified

54
55// BeginTx wraps transaction object with sync
56func (sw *DbSyncWrapper) BeginTx(ctx context.Context, options *transaction.TxOptions) (transaction.Transaction, error) {
57 tx, err := sw.DB.BeginTx(ctx, options)
58 if err != nil {
59 return nil, err
60 }
61 return syncTransactionWrap(tx), nil
62}
63
64type transactionEventLogger struct {
65 transaction.Transaction

Callers

nothing calls this directly

Calls 2

syncTransactionWrapFunction · 0.85
BeginTxMethod · 0.65

Tested by

no test coverage detected