(filename)
| 271 | |
| 272 | |
| 273 | def _dot_postgresql_path(filename) -> typing.Optional[pathlib.Path]: |
| 274 | try: |
| 275 | homedir = pathlib.Path.home() |
| 276 | except (RuntimeError, KeyError): |
| 277 | return None |
| 278 | |
| 279 | return (homedir / '.postgresql' / filename).resolve() |
| 280 | |
| 281 | |
| 282 | def _parse_connect_dsn_and_args(*, dsn, host, port, user, |
no outgoing calls
no test coverage detected