Skip to content

Commit

Permalink
feat(pgdriver): provide access to the underlying net.Conn
Browse files Browse the repository at this point in the history
  • Loading branch information
htdvisser committed Aug 1, 2022
1 parent bda298a commit d07ea0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/pgdriver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ func (cn *Conn) checkBadConn(err error) error {
return err
}

func (cn *Conn) Conn() net.Conn { return cn.netConn }

//------------------------------------------------------------------------------

type rows struct {
Expand Down

0 comments on commit d07ea0e

Please sign in to comment.