Get common PostgreSQL command arguments.
()
| 61 | |
| 62 | |
| 63 | def _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 | |
| 74 | def _dump_postgresql(output_file: Path) -> None: |
no test coverage detected