All loads matched rows from database to `dst`, USE IT WITH COUTIOUS!!
(dst interface{}, clauses ...dal.Clause)
| 205 | |
| 206 | // All loads matched rows from database to `dst`, USE IT WITH COUTIOUS!! |
| 207 | func (d *Dalgorm) All(dst interface{}, clauses ...dal.Clause) errors.Error { |
| 208 | d.unwrapDynamic(&dst, &clauses) |
| 209 | return d.convertGormError(buildTx(d.db, clauses).Find(dst).Error) |
| 210 | } |
| 211 | |
| 212 | // First loads first matched row from database to `dst`, error will be returned if no records were found |
| 213 | func (d *Dalgorm) First(dst interface{}, clauses ...dal.Clause) errors.Error { |
nothing calls this directly
no test coverage detected