14 lines
158 B
Go
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
|
|
}
|