(ctx context.Context, stmt *sql.Stmt, query string, args ...interface{})
| 127 | } |
| 128 | |
| 129 | func (q *Queries) queryRow(ctx context.Context, stmt *sql.Stmt, query string, args ...interface{}) *sql.Row { |
| 130 | switch { |
| 131 | case stmt != nil && q.tx != nil: |
| 132 | return q.tx.StmtContext(ctx, stmt).QueryRowContext(ctx, args...) |
| 133 | case stmt != nil: |
| 134 | return stmt.QueryRowContext(ctx, args...) |
| 135 | default: |
| 136 | return q.db.QueryRowContext(ctx, query, args...) |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | type Queries struct { |
| 141 | db DBTX |
no test coverage detected