Skip to content

Commit

Permalink
fix: re-add dbcontext()
Browse files Browse the repository at this point in the history
  • Loading branch information
23doors committed Aug 10, 2020
1 parent 50430bd commit fc544df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions database/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ func (m *Manager) DB() orm.DB {
return m.dbGet()
}

func (m *Manager) DBContext() database.DBContext {
return m.dbCtx
}

// SetDB sets database.
func (m *Manager) SetDB(db orm.DB) {
m.curDB = db
Expand Down

0 comments on commit fc544df

Please sign in to comment.