aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/driver
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-10-24 18:43:07 +0000
committerRuss Cox <rsc@golang.org>2017-10-24 18:43:18 +0000
commit3b9d947b2f4eb3bf7ff01eb33cd1e91bbce73c77 (patch)
tree7177bb996f4e62dfb1a8599b981ecdebd06ec81f /src/database/sql/driver
parent8c58900aeb9241e856515c23519455bf39c808df (diff)
downloadgo-3b9d947b2f4eb3bf7ff01eb33cd1e91bbce73c77.tar.xz
Revert "database/sql: add driver.ResetSessioner and add pool support"
This reverts commit 2620ac3aeafe75a62fa81bd5094a8e1e4ef1ca8b. Reason for revert: broke all the builds. Change-Id: I26fc09a13f5f80fa708de66c843442ff9d934694 Reviewed-on: https://go-review.googlesource.com/73050 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/database/sql/driver')
-rw-r--r--src/database/sql/driver/driver.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/database/sql/driver/driver.go b/src/database/sql/driver/driver.go
index 6113af79c5..f5a2e7c16c 100644
--- a/src/database/sql/driver/driver.go
+++ b/src/database/sql/driver/driver.go
@@ -222,18 +222,6 @@ type ConnBeginTx interface {
BeginTx(ctx context.Context, opts TxOptions) (Tx, error)
}
-// ResetSessioner may be implemented by Conn to allow drivers to reset the
-// session state associated with the connection and to signal a bad connection.
-type ResetSessioner interface {
- // ResetSession is called while a connection is in the connection
- // pool. No queries will run on this connection until this method returns.
- //
- // If the connection is bad this should return driver.ErrBadConn to prevent
- // the connection from being returned to the connection pool. Any other
- // error will be discarded.
- ResetSession(ctx context.Context) error
-}
-
// Result is the result of a query execution.
type Result interface {
// LastInsertId returns the database's auto-generated ID