Shutdown gracefully, close DB connection

This commit is contained in:
Deluan
2022-11-21 12:14:06 -05:00
parent 5f3f7afb90
commit cd41d9a419
7 changed files with 163 additions and 111 deletions
+5
View File
@@ -34,6 +34,11 @@ func Db() *sql.DB {
})
}
func Close() error {
log.Info("Closing Database")
return Db().Close()
}
func EnsureLatestVersion() {
db := Db()