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-09-04 16:39:19 +02:00 committed by Jinzhu
parent c0ac6a7d50
commit b1885a643b
1 changed files with 1 additions and 0 deletions

View File

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