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

Method Queryx

sqlx.go:351–357  ·  sqlx.go::DB.Queryx

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

(query string, args ...interface{})

Source from the content-addressed store, hash-verified

349// Queryx queries the database and returns an *sqlx.Rows.
350// Any placeholder parameters are replaced with supplied args.
351func (db *DB) Queryx(query string, args ...interface{}) (*Rows, error) {
352 r, err := db.DB.Query(query, args...)
353 if err != nil {
354 return nil, err
355 }
356 return &Rows{Rows: r, unsafe: db.unsafe, Mapper: db.Mapper}, err
357}
358
359// QueryRowx queries the database and returns an *sqlx.Row.
360// Any placeholder parameters are replaced with supplied args.

Callers

nothing calls this directly

Calls 1

QueryMethod · 0.65

Tested by

no test coverage detected