We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc119f7 commit 2ebcad4Copy full SHA for 2ebcad4
src/database/sql/driver/driver.go
@@ -116,8 +116,8 @@ type DriverContext interface {
116
// access to context and to avoid repeated parsing of driver
117
// configuration.
118
//
119
-// A Connector may optionally implement io.Closer interface
120
-// to release the resources when sql.DB is closed.
+// If a Connector implements io.Closer interface, the sql package's
+// DB.Close will call the Close method and return the error (if any).
121
type Connector interface {
122
// Connect returns a connection to the database.
123
// Connect may return a cached connection (one previously
0 commit comments