Query delegates down to the underlying Preparer using a prepared statement
(query string, args ...interface{})
| 62 | |
| 63 | // Query delegates down to the underlying Preparer using a prepared statement |
| 64 | func (sc *StmtCache) Query(query string, args ...interface{}) (rows *sql.Rows, err error) { |
| 65 | stmt, err := sc.Prepare(query) |
| 66 | if err != nil { |
| 67 | return |
| 68 | } |
| 69 | return stmt.Query(args...) |
| 70 | } |
| 71 | |
| 72 | // QueryRow delegates down to the underlying Preparer using a prepared statement |
| 73 | func (sc *StmtCache) QueryRow(query string, args ...interface{}) RowScanner { |