QueryWith Querys the SQL returned by s with db.
(db Queryer, s Sqlizer)
| 109 | |
| 110 | // QueryWith Querys the SQL returned by s with db. |
| 111 | func QueryWith(db Queryer, s Sqlizer) (rows *sql.Rows, err error) { |
| 112 | query, args, err := s.ToSql() |
| 113 | if err != nil { |
| 114 | return |
| 115 | } |
| 116 | return db.Query(query, args...) |
| 117 | } |
| 118 | |
| 119 | // QueryRowWith QueryRows the SQL returned by s with db. |
| 120 | func QueryRowWith(db QueryRower, s Sqlizer) RowScanner { |
searching dependent graphs…