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

Method Begin

server/transaction_commit_informer.go:47–53  ·  view source on GitHub ↗

Begin wraps transaction object with sync

()

Source from the content-addressed store, hash-verified

45
46// Begin wraps transaction object with sync
47func (sw *DbSyncWrapper) Begin() (transaction.Transaction, error) {
48 tx, err := sw.DB.Begin()
49 if err != nil {
50 return nil, err
51 }
52 return syncTransactionWrap(tx), nil
53}
54
55// BeginTx wraps transaction object with sync
56func (sw *DbSyncWrapper) BeginTx(ctx context.Context, options *transaction.TxOptions) (transaction.Transaction, error) {

Callers 1

ResyncFunction · 0.95

Calls 2

syncTransactionWrapFunction · 0.85
BeginMethod · 0.65

Tested by

no test coverage detected