Skip to content

Add support for reading passwords from .pgpass #268

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

Merged
merged 1 commit into from
Mar 7, 2018
Merged

Add support for reading passwords from .pgpass #268

merged 1 commit into from
Mar 7, 2018

Conversation

elprans
Copy link
Member

@elprans elprans commented Mar 4, 2018

This largely mirrors libpq's behaviour with respect to ~/.pgpass.

Fixes: #267.

@elprans elprans self-assigned this Mar 4, 2018
@elprans elprans requested a review from 1st1 March 4, 2018 01:00
@elprans elprans force-pushed the pgpass branch 6 times, most recently from 89dee7f to 57f200a Compare March 4, 2018 02:20
if r:
return None
else:
return pathlib.Path(buf.value) / 'postgresql'
Copy link
Member

Choose a reason for hiding this comment

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

Please add a comment explaining why using Path.home() would not be enough.

This largely mirrors libpq's behaviour with respect to ~/.pgpass.

Fixes: #267.
@elprans elprans merged commit 55a372f into master Mar 7, 2018
@elprans elprans deleted the pgpass branch March 7, 2018 03:37
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