Skip to content
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

chore: update test code to have comments #791

Merged
merged 2 commits into from
May 7, 2024

Conversation

jackwotherspoon
Copy link
Collaborator

Updating test code to match readme sample...

@jackwotherspoon jackwotherspoon self-assigned this May 7, 2024
@jackwotherspoon jackwotherspoon requested a review from a team as a code owner May 7, 2024 17:53
Comment on lines 86 to 88
// Tell the driver to use the Cloud SQL Go Connector to create connections
// postgresConnName is Cloud SQL instance connection name,
// in the form of 'project:region:instance'.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me know if you think there is a better comment for these two lines

pool, err := pgxpool.NewWithConfig(ctx, config)
if err != nil {
t.Fatalf("failed to create pool: %s", err)
}
// ... etc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe: "Call cleanup at the end of your main function when the database connection is no longer needed."

@jackwotherspoon jackwotherspoon merged commit 12de0dc into main May 7, 2024
13 checks passed
@jackwotherspoon jackwotherspoon deleted the jackwotherspoon-patch-1 branch May 7, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants