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

Method QueryxContext

sqlx_context.go:400–406  ·  view source on GitHub ↗
(ctx context.Context, query string, args ...interface{})

Source from the content-addressed store, hash-verified

398}
399
400func (q *qStmt) QueryxContext(ctx context.Context, query string, args ...interface{}) (*Rows, error) {
401 r, err := q.Stmt.QueryContext(ctx, args...)
402 if err != nil {
403 return nil, err
404 }
405 return &Rows{Rows: r, unsafe: q.Stmt.unsafe, Mapper: q.Stmt.Mapper}, err
406}
407
408func (q *qStmt) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *Row {
409 rows, err := q.Stmt.QueryContext(ctx, args...)

Callers 1

QueryxContextMethod · 0.95

Calls 1

QueryContextMethod · 0.65

Tested by

no test coverage detected