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
|
// access to context and to avoid repeated parsing of driver
|
||||||
// configuration.
|
// configuration.
|
||||||
//
|
//
|
||||||
// If a Connector implements io.Closer interface, the sql package's
|
// If a Connector implements io.Closer, the sql package's DB.Close
|
||||||
// DB.Close will call the Close method and return the error (if any).
|
// method will call Close and return error (if any).
|
||||||
type Connector interface {
|
type Connector interface {
|
||||||
// Connect returns a connection to the database.
|
// Connect returns a connection to the database.
|
||||||
// Connect may return a cached connection (one previously
|
// Connect may return a cached connection (one previously
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue