BeginTx wraps transaction object with sync
(ctx context.Context, options *transaction.TxOptions)
| 54 | |
| 55 | // BeginTx wraps transaction object with sync |
| 56 | func (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 | |
| 64 | type transactionEventLogger struct { |
| 65 | transaction.Transaction |
nothing calls this directly
no test coverage detected