mirror of https://github.com/golang/go.git
Update doc for dirver.Connector that implements io.Closer
This commit is contained in:
parent
2ebcad4739
commit
962c785dfb
|
|
@ -116,8 +116,8 @@ type DriverContext interface {
|
|||
// access to context and to avoid repeated parsing of driver
|
||||
// configuration.
|
||||
//
|
||||
// If a Connector implements io.Closer interface, the sql package's
|
||||
// DB.Close will call the Close method and return the error (if any).
|
||||
// If a Connector implements io.Closer, the sql package's DB.Close
|
||||
// method will call Close and return error (if any).
|
||||
type Connector interface {
|
||||
// Connect returns a connection to the database.
|
||||
// Connect may return a cached connection (one previously
|
||||
|
|
|
|||
Loading…
Reference in New Issue