Skip to content

Commit

Permalink
add get dsn func
Browse files Browse the repository at this point in the history
  • Loading branch information
hasa1K committed Aug 3, 2023
1 parent 9007daa commit 582accb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sqle/driver/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@ func (i *MysqlDriverImpl) GetConn() *executor.Executor {
return i.dbConn
}

func (i *MysqlDriverImpl) GetDSN() *driverV2.DSN {
return i.inst
}

// closeDbConn close db conn and just close once.
func (i *MysqlDriverImpl) closeDbConn() {
if i.isConnected {
Expand Down

0 comments on commit 582accb

Please sign in to comment.