(ctx context.Context, query string, args ...interface{})
| 118 | } |
| 119 | |
| 120 | func (db *PreparedStmtDB) QueryContext(ctx context.Context, query string, args ...interface{}) (rows *sql.Rows, err error) { |
| 121 | stmt, err := db.prepare(ctx, db.ConnPool, false, query) |
| 122 | if err == nil { |
| 123 | rows, err = stmt.QueryContext(ctx, args...) |
| 124 | if errors.Is(err, driver.ErrBadConn) { |
| 125 | db.Stmts.Delete(query) |
| 126 | } |
| 127 | } |
| 128 | return rows, err |
| 129 | } |
| 130 | |
| 131 | func (db *PreparedStmtDB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row { |
| 132 | stmt, err := db.prepare(ctx, db.ConnPool, false, query) |
nothing calls this directly
no test coverage detected