TracedTx wraps a sql.Tx to add tracing to all database operations within a transaction
| 26 | |
| 27 | // TracedTx wraps a sql.Tx to add tracing to all database operations within a transaction |
| 28 | type 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 |
| 35 | var _ DBTx = (*TracedTx)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected