Skip to content

Commit

Permalink
style(do): reuse underlyingDB
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1v3r committed Jan 13, 2022
1 parent 131b2a8 commit 078c64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion do.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (d DO) TableName() string {
func (d *DO) Session(config *gorm.Session) Dao { return d.getInstance(d.db.Session(config)) }

// UnderlyingDB return the underlying database connection
func (d *DO) UnderlyingDB() *gorm.DB { return d.db }
func (d *DO) UnderlyingDB() *gorm.DB { return d.underlyingDB() }

// Quote return qutoed data
func (d *DO) Quote(raw string) string { return d.db.Statement.Quote(raw) }
Expand Down

0 comments on commit 078c64a

Please sign in to comment.