Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

added getconnectionstring()#6

Open
hsum wants to merge 3 commits intogmr:masterfrom
hsum:connectionstring
Open

added getconnectionstring()#6
hsum wants to merge 3 commits intogmr:masterfrom
hsum:connectionstring

Conversation

@hsum
Copy link

@hsum hsum commented Oct 2, 2018

added function to generate a connection string when provided same arguments as getpass.

def getconnectionstring(
    host=DEFAULT_HOST,
    port=DEFAULT_PORT,
    dbname=DEFAULT_DBNAME,
    user=DEFAULT_USER,
):

If getpass() returns '', getconnectionstring returns ''

@codecov-io
Copy link

codecov-io commented Oct 2, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@9b55ed5). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #6   +/-   ##
=========================================
  Coverage          ?   98.78%           
=========================================
  Files             ?        1           
  Lines             ?       82           
  Branches          ?       13           
=========================================
  Hits              ?       81           
  Misses            ?        0           
  Partials          ?        1
Impacted Files Coverage Δ
pgpasslib.py 98.78% <100%> (ø)

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 9b55ed5...cefc033. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants