QueryxContext queries the database and returns an *sqlx.Rows. Any placeholder parameters are replaced with supplied args.
(ctx context.Context, query string, args ...interface{})
| 159 | // QueryxContext queries the database and returns an *sqlx.Rows. |
| 160 | // Any placeholder parameters are replaced with supplied args. |
| 161 | func (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. |
nothing calls this directly
no test coverage detected