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

Make it possible to use SSL with pgcli #721

Merged
merged 2 commits into from
May 26, 2017

Conversation

aschmolck
Copy link

Description

This adds support for additional url query params which make stuff like

pgcli "postgres://user:pass@host.invalid/db?\
sslmode=verify-full&sslcert=my.pem&sslkey=my-key.pem&sslrootcert=ca.pem"

work. More generally it allows one to pass through various extra connection
options.

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).

@aschmolck aschmolck force-pushed the pgcli-ssl-url-support branch 2 times, most recently from 7486bb6 to e52cb9c Compare May 25, 2017 13:39
Alexander Schmolck added 2 commits May 25, 2017 14:49
This adds support for additional url query params which make stuff like

```
pgcli "postgres://user:pass@host.invalid/db?\
sslmode=verify-full&sslcert=my.pem&sslkey=my-key.pem&sslrootcert=ca.pem"
```

work. More generally it allows one to pass through various extra connection
options.
@codecov-io
Copy link

codecov-io commented May 25, 2017

Codecov Report

Merging #721 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #721      +/-   ##
========================================
+ Coverage   79.96%    80%   +0.04%     
========================================
  Files          22     22              
  Lines        2545   2551       +6     
========================================
+ Hits         2035   2041       +6     
  Misses        510    510
Impacted Files Coverage Δ
pgcli/completion_refresher.py 88.6% <ø> (ø) ⬆️
pgcli/pgexecute.py 86.27% <100%> (+0.1%) ⬆️
pgcli/packages/pgliterals/main.py 80.44% <0%> (+0.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 666aeee...52e47f3. Read the comment docs.

@amjith
Copy link
Member

amjith commented May 26, 2017

Looks great! Thank you for your contribution and thanks for taking the time to add tests. 🍨

@amjith amjith merged commit 6a58bd0 into dbcli:master May 26, 2017
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.

None yet

3 participants