Reorganize & Add DB Bootstrapping

This commit is contained in:
2021-01-12 17:06:27 -05:00
parent bc3b437ebc
commit fe932de37e
7 changed files with 49 additions and 40 deletions

View File

@@ -13,9 +13,9 @@ type ImaginiContext struct {
func NewImaginiContext() *ImaginiContext {
c := config.NewConfig()
gormDB := query.NewDB(c)
db := query.NewDB(c)
return &ImaginiContext{
DB: gormDB,
DB: db,
Config: c,
}
}