MCPcopy
hub / github.com/jmoiron/sqlx / QueryRowxContext

Method QueryRowxContext

sqlx_context.go:351–354  ·  sqlx_context.go::Tx.QueryRowxContext

QueryRowxContext within a transaction and context. Any placeholder parameters are replaced with supplied args.

(ctx context.Context, query string, args ...interface{})

Source from the content-addressed store, hash-verified

349// QueryRowxContext within a transaction and context.
350// Any placeholder parameters are replaced with supplied args.
351func (tx *Tx) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *Row {
352 rows, err := tx.Tx.QueryContext(ctx, query, args...)
353 return &Row{rows: rows, err: err, unsafe: tx.unsafe, Mapper: tx.Mapper}
354}
355
356// NamedExecContext using this Tx.
357// Any named placeholder parameters are replaced with fields from arg.

Callers

nothing calls this directly

Calls 1

QueryContextMethod · 0.65

Tested by

no test coverage detected