First loads first matched row from database to `dst`, error will be returned if no records were found
(dst interface{}, clauses ...dal.Clause)
| 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 { |
| 214 | d.unwrapDynamic(&dst, &clauses) |
| 215 | return d.convertGormError(buildTx(d.db, clauses).First(dst).Error) |
| 216 | } |
| 217 | |
| 218 | // Count total records |
| 219 | func (d *Dalgorm) Count(clauses ...dal.Clause) (int64, errors.Error) { |
no test coverage detected