From 3b9d947b2f4eb3bf7ff01eb33cd1e91bbce73c77 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 24 Oct 2017 18:43:07 +0000 Subject: 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 --- src/database/sql/driver/driver.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/database/sql/driver/driver.go') 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 -- cgit v1.3