nolint:forcetypeassert
| 106 | func (d *Driver) UnwrapTx(execTx riverdriver.ExecutorTx) *sql.Tx { return execTx.(*ExecutorTx).tx } //nolint:forcetypeassert |
| 107 | |
| 108 | type Executor struct { |
| 109 | dbPool *sql.DB |
| 110 | dbtx templateReplaceWrapper |
| 111 | driver *Driver |
| 112 | } |
| 113 | |
| 114 | func (e *Executor) Begin(ctx context.Context) (riverdriver.ExecutorTx, error) { |
| 115 | tx, err := e.dbPool.BeginTx(ctx, nil) |
nothing calls this directly
no outgoing calls
no test coverage detected