mirror of https://github.com/go-gorm/gorm.git
Support cloudsqlpostgres dialect (#1577)
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:
parent
c0ac6a7d50
commit
b1885a643b
|
@ -13,6 +13,7 @@ type postgres struct {
|
|||
|
||||
func init() {
|
||||
RegisterDialect("postgres", &postgres{})
|
||||
RegisterDialect("cloudsqlpostgres", &postgres{})
|
||||
}
|
||||
|
||||
func (postgres) GetName() string {
|
||||
|
|
Loading…
Reference in New Issue