MCPcopy
hub / github.com/django/django / dsn

Function dsn

django/db/backends/oracle/utils.py:95–99  ·  view source on GitHub ↗
(settings_dict)

Source from the content-addressed store, hash-verified

93
94
95def dsn(settings_dict):
96 if settings_dict["PORT"]:
97 host = settings_dict["HOST"].strip() or "localhost"
98 return Database.makedsn(host, int(settings_dict["PORT"]), settings_dict["NAME"])
99 return settings_dict["NAME"]

Callers 3

connect_stringMethod · 0.90
poolMethod · 0.85
get_new_connectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected