IsErrorNotFound checking if the sql error is not found.
(err error)
| 488 | |
| 489 | // IsErrorNotFound checking if the sql error is not found. |
| 490 | func (d *Dalgorm) IsErrorNotFound(err error) bool { |
| 491 | return errors.Is(err, gorm.ErrRecordNotFound) |
| 492 | } |
| 493 | |
| 494 | // IsDuplicationError checking if the sql error is not found. |
| 495 | func (d *Dalgorm) IsDuplicationError(err error) bool { |