-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add pgx v5 support (#639) #642
Conversation
e2e_postgres_test.go
Outdated
@@ -162,6 +163,48 @@ func TestPostgresHook(t *testing.T) { | |||
} | |||
t.Log(now) | |||
} | |||
pgxv5.RegisterDriver("cloudsql-postgres") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we turn this into a table test?
postgres/pgxv5/postgres_test.go
Outdated
) | ||
|
||
// Example shows how to use cloudsqlpostgres dialer | ||
func ExamplePostgresConnection() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can omit this change -- it was a mistake to add it for pgxv4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed it for both v4 and v5.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you
The update of the commit takes a long time to be propagated to the PR page. Will close it and reopen. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small change for named properties. I'll approve since it's a minor change.
e2e_postgres_test.go
Outdated
IAMAuthN bool | ||
}{ | ||
{ | ||
"cloudsql-postgres", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use named properties here:
{
driver: "cloudsql-postgres",
source: ... // etc
}
No description provided.