Skip to content

Commit

Permalink
feat: add manager dbcontext
Browse files Browse the repository at this point in the history
  • Loading branch information
23doors committed Jun 12, 2020
1 parent 23d6fbc commit 29b0577
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 @@ -46,6 +46,10 @@ func (m *Manager) DB() orm.DB {
return m.dbGet(m.dbCtx)
}

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 29b0577

Please sign in to comment.