MCPcopy
hub / github.com/dbcli/pgcli / connect_uri

Method connect_uri

pgcli/main.py:619–623  ·  view source on GitHub ↗
(self, uri)

Source from the content-addressed store, hash-verified

617 )
618
619 def connect_uri(self, uri):
620 kwargs = conninfo_to_dict(uri)
621 remap = {"dbname": "database", "password": "passwd"}
622 kwargs = {remap.get(k, k): v for k, v in kwargs.items()}
623 self.connect(**kwargs)
624
625 def connect(self, database="", host="", user="", port="", passwd="", dsn="", **kwargs):
626 # Connect to the database.

Callers 7

pgcli_line_magicFunction · 0.95
cliFunction · 0.95
test_quoted_db_uriFunction · 0.95
test_ssl_db_uriFunction · 0.95
test_port_db_uriFunction · 0.95
test_multihost_db_uriFunction · 0.95

Calls 1

connectMethod · 0.95

Tested by 5

test_quoted_db_uriFunction · 0.76
test_ssl_db_uriFunction · 0.76
test_port_db_uriFunction · 0.76
test_multihost_db_uriFunction · 0.76