go/src/database/sql
Daniel Theophanes b44b2feb91 database/sql: allow OpenConnector in a driver.Driver interface
While driver.Connector was previously added to allow non-string
connection arguments and access to the context, most users of
the sql package will continue to rely on a string DSN.

Allow drivers to implement a string DSN to Connector interface
that both allows a single parsing of the string DSN and uses
the Connector interface which passes available context to
the driver dialer.

Fixes #22713

Change-Id: Ia0b862262f4c4670effe2538d0d6d43733fea18d
Reviewed-on: https://go-review.googlesource.com/77550
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
2017-11-16 22:36:07 +00:00
..
driver database/sql: allow OpenConnector in a driver.Driver interface 2017-11-16 22:36:07 +00:00
convert.go database/sql: scan into *time.Time without reflection 2017-10-25 19:29:16 +00:00
convert_test.go all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
ctxutil.go database/sql: fix ctx.Done() == nil check 2017-11-15 21:28:27 +00:00
doc.txt database/sql: fix outdated package name in doc.txt 2017-06-30 19:11:17 +00:00
example_test.go all: minor vet fixes 2016-10-24 17:27:37 +00:00
fakedb_test.go database/sql: allow OpenConnector in a driver.Driver interface 2017-11-16 22:36:07 +00:00
sql.go database/sql: allow OpenConnector in a driver.Driver interface 2017-11-16 22:36:07 +00:00
sql_test.go database/sql: allow OpenConnector in a driver.Driver interface 2017-11-16 22:36:07 +00:00