Support cloudsqlpostgres dialect

This is needed for proper cloud sql proxy.

see https://github.com/GoogleCloudPlatform/cloudsql-proxy and https://github.com/GoogleCloudPlatform/cloudsql-proxy/blob/master/proxy/dialers/postgres/hook_test.go for details.
This commit is contained in:
Cedric GESTES 2017-08-19 00:19:20 +02:00 committed by GitHub
parent c3bb6aaa82
commit e17a7bbfdc

View File

@ -13,6 +13,7 @@ type postgres struct {
func init() {
RegisterDialect("postgres", &postgres{})
RegisterDialect("cloudsqlpostgres", &postgres{})
}
func (postgres) GetName() string {