]> Cypherpunks repositories - gostls13.git/commit
database/sql: add Conn.Raw to expose the driver Conn safely
authorDaniel Theophanes <kardianos@gmail.com>
Fri, 26 Apr 2019 21:09:07 +0000 (14:09 -0700)
committerDaniel Theophanes <kardianos@gmail.com>
Thu, 13 Jun 2019 16:49:52 +0000 (16:49 +0000)
commitdc63b59630cbc7fe1b039757bac0d6f713dfc26d
tree1ac4f820ad244b36cb9f6cee3586997e8cc67237
parent25a2b98f7a1454aac0d7d3072f74613ac0446630
database/sql: add Conn.Raw to expose the driver Conn safely

Exposing the underlying driver conn will allow the use of the
standard connection pool while still able to run special function
directly on the driver.

Fixes #29835

Change-Id: Ib6d3b9535e730f008916805ae3bf76e4494c88f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/174182
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/database/sql/sql.go
src/database/sql/sql_test.go