Begin wraps transaction object with sync
()
| 45 | |
| 46 | // Begin wraps transaction object with sync |
| 47 | func (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 |
| 56 | func (sw *DbSyncWrapper) BeginTx(ctx context.Context, options *transaction.TxOptions) (transaction.Transaction, error) { |
no test coverage detected