TransactionScopedWork describes code executed within a database transaction.
func(ctx context.Context, db *sql.Tx) error
| 7 | |
| 8 | // TransactionScopedWork describes code executed within a database transaction. |
| 9 | type TransactionScopedWork func(ctx context.Context, db *sql.Tx) error |
| 10 | |
| 11 | // RunTransactionWithOptions executes a block of code within a database transaction. |
| 12 | func RunTransactionWithOptions(ctx context.Context, db *sql.DB, txOpts *sql.TxOptions, txWork TransactionScopedWork) error { |
nothing calls this directly
no outgoing calls
no test coverage detected