mirror of
https://github.com/documize/community.git
synced 2025-07-20 21:59:42 +02:00
Updated Go MySQL driver library
This commit is contained in:
parent
d04becc1a3
commit
f3df43efe0
32 changed files with 7413 additions and 867 deletions
8
vendor/github.com/go-sql-driver/mysql/appengine.go
generated
vendored
8
vendor/github.com/go-sql-driver/mysql/appengine.go
generated
vendored
|
@ -11,9 +11,15 @@
|
|||
package mysql
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
|
||||
"google.golang.org/appengine/cloudsql"
|
||||
)
|
||||
|
||||
func init() {
|
||||
RegisterDial("cloudsql", cloudsql.Dial)
|
||||
RegisterDialContext("cloudsql", func(_ context.Context, instance string) (net.Conn, error) {
|
||||
// XXX: the cloudsql driver still does not export a Context-aware dialer.
|
||||
return cloudsql.Dial(instance)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue