mirror of
https://github.com/golang/go
synced 2024-11-18 03:44:46 -07:00
database/sql/driver: use correct method name "Connect" in DriverContext docs
Change-Id: I755fedebb1f8f4d3f27b2b3f8626bca03bd36c88
GitHub-Last-Rev: 4a123572d5
GitHub-Pull-Request: golang/go#39305
Reviewed-on: https://go-review.googlesource.com/c/go/+/235518
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
This commit is contained in:
parent
0aed2a4133
commit
1ed57c1b72
@ -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