MCPcopy
hub / github.com/autobrr/qui / capturingTx

Struct capturingTx

internal/models/postgres_bool_args_test.go:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18)
19
20type capturingTx struct {
21 tx *sql.Tx
22 onExec func(query string, args []any)
23 onQueryRow func(query string, args []any)
24}
25
26func (t *capturingTx) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) {
27 if t.onExec != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected