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

Method QueryxContext

sqlx_context.go:328–334  ·  view source on GitHub ↗

QueryxContext 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

326// QueryxContext within a transaction and context.
327// Any placeholder parameters are replaced with supplied args.
328func (tx *Tx) QueryxContext(ctx context.Context, query string, args ...interface{}) (*Rows, error) {
329 r, err := tx.Tx.QueryContext(ctx, query, args...)
330 if err != nil {
331 return nil, err
332 }
333 return &Rows{Rows: r, unsafe: tx.unsafe, Mapper: tx.Mapper}, err
334}
335
336// SelectContext within a transaction and context.
337// Any placeholder parameters are replaced with supplied args.

Callers

nothing calls this directly

Calls 1

QueryContextMethod · 0.65

Tested by

no test coverage detected