aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/driver/driver.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-11-15 15:07:44 -0500
committerRuss Cox <rsc@golang.org>2017-11-15 21:28:18 +0000
commit442d15abc367a21893e68dab3ac518cc28f155d2 (patch)
tree04e30110537b6c3e17d36f03cc845caf35d696d2 /src/database/sql/driver/driver.go
parentcac334cc5f2e4a2b68ed044da934b68d803e25af (diff)
downloadgo-442d15abc367a21893e68dab3ac518cc28f155d2.tar.xz
database/sql/driver: rename ResetSessioner to SessionResetter
Originally we tried the strict -er suffix as the rule in this case but eventually we decided it was too awkward: io.WriteByter became io.ByteWriter. By analogy, here the interface should be named SessionResetter instead of the awkward ResetSessioner. This change should not affect any drivers that have already implemented the interface, because the method name is not changing. (This was added during the Go 1.10 cycle and has not been released yet, so we can change it.) Change-Id: Ie50e4e090d3811f85965da9da37d966e9f45e79d Reviewed-on: https://go-review.googlesource.com/78127 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Diffstat (limited to 'src/database/sql/driver/driver.go')
-rw-r--r--src/database/sql/driver/driver.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/sql/driver/driver.go b/src/database/sql/driver/driver.go
index 6113af79c5..6bea8f9de9 100644
--- a/src/database/sql/driver/driver.go
+++ b/src/database/sql/driver/driver.go
@@ -222,9 +222,9 @@ type ConnBeginTx interface {
BeginTx(ctx context.Context, opts TxOptions) (Tx, error)
}
-// ResetSessioner may be implemented by Conn to allow drivers to reset the
+// SessionResetter 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 {
+type SessionResetter interface {
// ResetSession is called while a connection is in the connection
// pool. No queries will run on this connection until this method returns.
//