23 lines
281 B
Go
23 lines
281 B
Go
package database
|
|
|
|
import (
|
|
"git.rouggy.com/rouggy/RaceBot/internal/domain"
|
|
"github.com/jinzhu/gorm"
|
|
)
|
|
|
|
var db *gorm.DB
|
|
var err error
|
|
|
|
type DB struct {
|
|
handler *gorm.DB
|
|
}
|
|
|
|
func NewDB(cfg domain.Config) {
|
|
|
|
}
|
|
|
|
// GetDB : get current connection
|
|
func GetDB() *gorm.DB {
|
|
return db
|
|
}
|