clair/vendor/github.com/ziutek/mymysql/godrv/appengine.go
2016-02-24 16:34:54 -05:00

17 lines
237 B
Go

// +build appengine
package godrv
import (
"net"
"time"
"appengine/cloudsql"
)
func init() {
SetDialer(func(proto, laddr, raddr, user, dbname string, timeout time.Duration) (net.Conn, error) {
return cloudsql.Dial(raddr)
})
}