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

Use Go 1.20's link syntax for ParseConfig #1701

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

AlekSi
Copy link
Contributor

@AlekSi AlekSi commented Jul 27, 2023

See https://golang.org/doc/comment#doclinks. I find myself looking for URL query parameters way too often. Links should help me and, hopefully, others.

pool, err := pgxpool.New(context.Background(), os.Getenv("DATABASE_URL"))
The database connection string can be in URL or DSN format. PostgreSQL settings, pgx settings, and pool settings can be
specified here. In addition, a config struct can be created by `ParseConfig` and modified before establishing the
connection with `ConnectConfig`.
specified here. In addition, a config struct can be created by [ParseConfig].
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no ConnectConfig in pgxpool, so I removed it there and in other places in this package

@AlekSi AlekSi marked this pull request as ready for review July 27, 2023 13:50
@jackc jackc merged commit 8fb309c into jackc:master Jul 28, 2023
10 of 14 checks passed
@jackc
Copy link
Owner

jackc commented Jul 28, 2023

LGTM

@AlekSi AlekSi deleted the format-docs branch July 31, 2023 07:18
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