(ctx context.Context, query string, args ...interface{})
| 179 | } |
| 180 | |
| 181 | func (tx *PreparedStmtTX) QueryContext(ctx context.Context, query string, args ...interface{}) (rows *sql.Rows, err error) { |
| 182 | stmt, err := tx.PreparedStmtDB.prepare(ctx, tx.Tx, true, query) |
| 183 | if err == nil { |
| 184 | rows, err = tx.Tx.StmtContext(ctx, stmt.Stmt).QueryContext(ctx, args...) |
| 185 | if errors.Is(err, driver.ErrBadConn) { |
| 186 | tx.PreparedStmtDB.Stmts.Delete(query) |
| 187 | } |
| 188 | } |
| 189 | return rows, err |
| 190 | } |
| 191 | |
| 192 | func (tx *PreparedStmtTX) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row { |
| 193 | stmt, err := tx.PreparedStmtDB.prepare(ctx, tx.Tx, true, query) |
nothing calls this directly
no test coverage detected