MCPcopy
hub / github.com/writefreely/writefreely / TransactionScopedWork

FuncType TransactionScopedWork

db/tx.go:9–9  ·  view source on GitHub ↗

TransactionScopedWork describes code executed within a database transaction.

func(ctx context.Context, db *sql.Tx) error

Source from the content-addressed store, hash-verified

7
8// TransactionScopedWork describes code executed within a database transaction.
9type TransactionScopedWork func(ctx context.Context, db *sql.Tx) error
10
11// RunTransactionWithOptions executes a block of code within a database transaction.
12func RunTransactionWithOptions(ctx context.Context, db *sql.DB, txOpts *sql.TxOptions, txWork TransactionScopedWork) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected