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

Add password environment variable for customizing running tests #1996

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

DarrylWong
Copy link
Contributor

In #1429, environment variables were added to read in postgres connection details for customizing tests. This change does the same but with a password variable.

It also removes the explicit user and password values from pgOptions, as Options init() will set it as postgres anyway if not specified. This also enables env variables to be used instead for those values.

In go-pg#1429, environment variables were added to read in postgres
connection details for customizing tests. This change does the
same but with a password variable.

It also removes the explicit user and password values from pgOptions,
as Options init() will set it as postgres anyway if not specified.
This also enables env variables to be used instead for those values.
@elliotcourant
Copy link
Collaborator

Seems reasonable to me, thank you @DarrylWong

@elliotcourant elliotcourant merged commit 20f9a47 into go-pg:v10 Jan 23, 2024
3 checks passed
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