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

Method QueryxContext

sqlx_context.go:161–167  ·  sqlx_context.go::DB.QueryxContext

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

159// QueryxContext queries the database and returns an *sqlx.Rows.
160// Any placeholder parameters are replaced with supplied args.
161func (db *DB) QueryxContext(ctx context.Context, query string, args ...interface{}) (*Rows, error) {
162 r, err := db.DB.QueryContext(ctx, query, args...)
163 if err != nil {
164 return nil, err
165 }
166 return &Rows{Rows: r, unsafe: db.unsafe, Mapper: db.Mapper}, err
167}
168
169// QueryRowxContext queries the database and returns an *sqlx.Row.
170// Any placeholder parameters are replaced with supplied args.

Callers

nothing calls this directly

Calls 1

QueryContextMethod · 0.65

Tested by

no test coverage detected