MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / _get_pg_args

Function _get_pg_args

apps/backups/services.py:63–71  ·  view source on GitHub ↗

Get common PostgreSQL command arguments.

()

Source from the content-addressed store, hash-verified

61
62
63def _get_pg_args() -> list[str]:
64 """Get common PostgreSQL command arguments."""
65 db_config = settings.DATABASES["default"]
66 return [
67 "-h", db_config.get("HOST", "localhost"),
68 "-p", str(db_config.get("PORT", 5432)),
69 "-U", db_config.get("USER", "postgres"),
70 "-d", db_config.get("NAME", "dispatcharr"),
71 ]
72
73
74def _dump_postgresql(output_file: Path) -> None:

Callers 3

_dump_postgresqlFunction · 0.85
_clean_postgresql_schemaFunction · 0.85
_restore_postgresqlFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected