GetDB returns the database mapping object from gin context.
(c *gin.Context)
| 23 | |
| 24 | // GetDB returns the database mapping object from gin context. |
| 25 | func GetDB(c *gin.Context) *gorp.DbMap { |
| 26 | return c.MustGet("db").(*gorp.DbMap) |
| 27 | } |
no test coverage detected