Exposing the driver Conn

37 views
Skip to first unread message

Daniel Theophanes

unread,
Feb 13, 2019, 2:04:25 PM2/13/19
to golang-sql
There was a recent proposal to expose the driver.Conn from the sql.Conn.

While I have closed it, If there is more interest from other driver maintainers, I can re-open for more discussion.


Thanks, -Daniel

Jack Christensen

unread,
Feb 13, 2019, 2:59:48 PM2/13/19
to Daniel Theophanes, golang-sql
I have that kind of functionality in pgx where it is possible to get the underlying pgx.Conn. However, it's a really nasty hack (https://github.com/jackc/pgx/blob/master/stdlib/sql.go#L614). Not pushing one way or another on this particular proposal though -- just saying it *is* handy to be able to get to the underlying native driver.

--
You received this message because you are subscribed to the Google Groups "golang-sql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-sql+...@googlegroups.com.
To post to this group, send email to golan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-sql/CAM5gecu-kksCFF3h5K_d2hD30dcTj8UH5i%3DMubC%3De4a8zqrM3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages