GetDB returns the global GORM database instance.
()
| 1301 | |
| 1302 | // GetDB returns the global GORM database instance. |
| 1303 | func GetDB() *gorm.DB { |
| 1304 | return db |
| 1305 | } |
| 1306 | |
| 1307 | func IsNotFound(err error) bool { |
| 1308 | return errors.Is(err, gorm.ErrRecordNotFound) |
no outgoing calls