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

Method QueryRowxContext

sqlx_context.go:171–174  ·  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

169// QueryRowxContext queries the database and returns an *sqlx.Row.
170// Any placeholder parameters are replaced with supplied args.
171func (db *DB) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *Row {
172 rows, err := db.DB.QueryContext(ctx, query, args...)
173 return &Row{rows: rows, err: err, unsafe: db.unsafe, Mapper: db.Mapper}
174}
175
176// MustBeginTx starts a transaction, and panics on error. Returns an *sqlx.Tx instead
177// of an *sql.Tx.

Callers

nothing calls this directly

Calls 1

QueryContextMethod · 0.65

Tested by

no test coverage detected