QueryContext delegates down to the underlying PreparerContext using a prepared statement
(ctx context.Context, query string, args ...interface{})
| 69 | |
| 70 | // QueryContext delegates down to the underlying PreparerContext using a prepared statement |
| 71 | func (sc *StmtCache) QueryContext(ctx context.Context, query string, args ...interface{}) (rows *sql.Rows, err error) { |
| 72 | stmt, err := sc.PrepareContext(ctx, query) |
| 73 | if err != nil { |
| 74 | return |
| 75 | } |
| 76 | return stmt.QueryContext(ctx, args...) |
| 77 | } |
| 78 | |
| 79 | // QueryRowContext delegates down to the underlying PreparerContext using a prepared statement |
| 80 | func (sc *StmtCache) QueryRowContext(ctx context.Context, query string, args ...interface{}) RowScanner { |
nothing calls this directly
no test coverage detected