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

Method QueryxContext

sqlx_context.go:260–266  ·  view source on GitHub ↗

QueryxContext queries the database and returns an *sqlx.Rows. Any placeholder parameters are replaced with supplied args.

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

Source from the content-addressed store, hash-verified

258// QueryxContext queries the database and returns an *sqlx.Rows.
259// Any placeholder parameters are replaced with supplied args.
260func (c *Conn) QueryxContext(ctx context.Context, query string, args ...interface{}) (*Rows, error) {
261 r, err := c.Conn.QueryContext(ctx, query, args...)
262 if err != nil {
263 return nil, err
264 }
265 return &Rows{Rows: r, unsafe: c.unsafe, Mapper: c.Mapper}, err
266}
267
268// QueryRowxContext queries the database and returns an *sqlx.Row.
269// Any placeholder parameters are replaced with supplied args.

Callers

nothing calls this directly

Calls 1

QueryContextMethod · 0.65

Tested by

no test coverage detected