MCPcopy
hub / github.com/unkeyed/unkey / TracedTx

Struct TracedTx

pkg/mysql/traced_tx.go:28–32  ·  view source on GitHub ↗

TracedTx wraps a sql.Tx to add tracing to all database operations within a transaction

Source from the content-addressed store, hash-verified

26
27// TracedTx wraps a sql.Tx to add tracing to all database operations within a transaction
28type TracedTx struct {
29 tx *sql.Tx
30 mode string
31 ctx context.Context // Store the context for commit/rollback tracing
32}
33
34// Ensure TracedTx implements the DBTx interface
35var _ DBTx = (*TracedTx)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected