MCPcopy Index your code
hub / github.com/riverqueue/river / Executor

Struct Executor

riverdriver/riverdatabasesql/river_database_sql_driver.go:108–112  ·  view source on GitHub ↗

nolint:forcetypeassert

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected