(ctx context.Context, stmt *sql.Stmt, query string, args ...interface{})
| 116 | } |
| 117 | |
| 118 | func (q *Queries) query(ctx context.Context, stmt *sql.Stmt, query string, args ...interface{}) (*sql.Rows, error) { |
| 119 | switch { |
| 120 | case stmt != nil && q.tx != nil: |
| 121 | return q.tx.StmtContext(ctx, stmt).QueryContext(ctx, args...) |
| 122 | case stmt != nil: |
| 123 | return stmt.QueryContext(ctx, args...) |
| 124 | default: |
| 125 | return q.db.QueryContext(ctx, query, args...) |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | func (q *Queries) queryRow(ctx context.Context, stmt *sql.Stmt, query string, args ...interface{}) *sql.Row { |
| 130 | switch { |
no test coverage detected