mirror of
https://github.com/golang/go
synced 2024-09-30 11:28:36 -06:00
database/sql/driver: use correct method name "Connect" in DriverContext docs
This commit is contained in:
parent
6bf2eea62a
commit
4a123572d5
@ -96,7 +96,7 @@ type Driver interface {
|
||||
|
||||
// If a Driver implements DriverContext, then sql.DB will call
|
||||
// OpenConnector to obtain a Connector and then invoke
|
||||
// that Connector's Conn method to obtain each needed connection,
|
||||
// that Connector's Connect method to obtain each needed connection,
|
||||
// instead of invoking the Driver's Open method for each connection.
|
||||
// The two-step sequence allows drivers to parse the name just once
|
||||
// and also provides access to per-Conn contexts.
|
||||
|
Loading…
Reference in New Issue
Block a user