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