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

Method QueryRowxContext

sqlx_context.go:270–273  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

268// QueryRowxContext queries the database and returns an *sqlx.Row.
269// Any placeholder parameters are replaced with supplied args.
270func (c *Conn) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *Row {
271 rows, err := c.Conn.QueryContext(ctx, query, args...)
272 return &Row{rows: rows, err: err, unsafe: c.unsafe, Mapper: c.Mapper}
273}
274
275// Rebind a query within a Conn's bindvar type.
276func (c *Conn) Rebind(query string) string {

Callers

nothing calls this directly

Calls 1

QueryContextMethod · 0.65

Tested by

no test coverage detected