MCPcopy Create free account
hub / github.com/riverqueue/river / QueryRow

Method QueryRow

internal/riverinternaltest/sharedtx/shared_tx.go:88–96  ·  view source on GitHub ↗
(ctx context.Context, query string, args ...any)

Source from the content-addressed store, hash-verified

86}
87
88func (e *SharedTx) QueryRow(ctx context.Context, query string, args ...any) pgx.Row {
89 e.lock()
90 // no unlock until row scan
91
92 row := e.inner.QueryRow(ctx, query, args...)
93
94 // executor is unlocked when row is scanned
95 return &SharedTxRow{sharedTxDerivative{sharedTx: e}, row}
96}
97
98//
99// These are implemented so SharedTx can satisfy pgx.Tx.

Callers

nothing calls this directly

Calls 2

lockMethod · 0.95
QueryRowMethod · 0.65

Tested by

no test coverage detected