QueryRow delegates down to the underlying Preparer using a prepared statement
(query string, args ...interface{})
| 71 | |
| 72 | // QueryRow delegates down to the underlying Preparer using a prepared statement |
| 73 | func (sc *StmtCache) QueryRow(query string, args ...interface{}) RowScanner { |
| 74 | stmt, err := sc.Prepare(query) |
| 75 | if err != nil { |
| 76 | return &Row{err: err} |
| 77 | } |
| 78 | return stmt.QueryRow(args...) |
| 79 | } |
| 80 | |
| 81 | // Clear removes and closes all the currently cached prepared statements |
| 82 | func (sc *StmtCache) Clear() (err error) { |