This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
RaceBot/database/database.go
2023-04-15 16:23:34 +07:00

14 lines
158 B
Go

package database
import (
"github.com/jinzhu/gorm"
)
var db *gorm.DB
var err error
// GetDB : get current connection
func GetDB() *gorm.DB {
return db
}