(query string, args ...interface{})
| 113 | return imtd.db.Query(query, args...) |
| 114 | } |
| 115 | func (imtd *InMemoryTestDatabase) Queryx(query string, args ...interface{}) (*sqlx.Rows, error) { |
| 116 | if imtd.queries == nil { |
| 117 | imtd.queries = make([]string, 0) |
| 118 | } |
| 119 | |
| 120 | imtd.queries = append(imtd.queries, query) |
| 121 | |
| 122 | return imtd.db.Queryx(query, args...) |
| 123 | |
| 124 | } |
| 125 | func (imtd *InMemoryTestDatabase) QueryRowx(query string, args ...interface{}) *sqlx.Row { |
| 126 | if imtd.queries == nil { |
| 127 | imtd.queries = make([]string, 0) |