2
0

Add driver.StmtQueryContext support to stdlib.Stmt

This commit is contained in:
Jack Christensen
2017-05-19 17:31:56 -05:00
parent c6cb362b18
commit e5820baebe
2 changed files with 114 additions and 0 deletions
+4
View File
@@ -396,6 +396,10 @@ func (s *Stmt) Query(argsV []driver.Value) (driver.Rows, error) {
return s.conn.queryPrepared(s.ps.Name, argsV)
}
func (s *Stmt) QueryContext(ctx context.Context, argsV []driver.NamedValue) (driver.Rows, error) {
return s.conn.queryPreparedContext(ctx, s.ps.Name, argsV)
}
type Rows struct {
rows *pgx.Rows
values []interface{}