MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _dot_postgresql_path

Function _dot_postgresql_path

asyncpg/connect_utils.py:267–273  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

265
266
267def _dot_postgresql_path(filename) -> typing.Optional[pathlib.Path]:
268 try:
269 homedir = pathlib.Path.home()
270 except (RuntimeError, KeyError):
271 return None
272
273 return (homedir / '.postgresql' / filename).resolve()
274
275
276def _parse_connect_dsn_and_args(*, dsn, host, port, user,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…