QueryContextWith QueryContexts the SQL returned by s with db.
(ctx context.Context, db QueryerContext, s Sqlizer)
| 79 | |
| 80 | // QueryContextWith QueryContexts the SQL returned by s with db. |
| 81 | func QueryContextWith(ctx context.Context, db QueryerContext, s Sqlizer) (rows *sql.Rows, err error) { |
| 82 | query, args, err := s.ToSql() |
| 83 | if err != nil { |
| 84 | return |
| 85 | } |
| 86 | return db.QueryContext(ctx, query, args...) |
| 87 | } |
| 88 | |
| 89 | // QueryRowContextWith QueryRowContexts the SQL returned by s with db. |
| 90 | func QueryRowContextWith(ctx context.Context, db QueryRowerContext, s Sqlizer) RowScanner { |
searching dependent graphs…