(name: str, default: bool)
| 34 | |
| 35 | |
| 36 | def _get_env_bool(name: str, default: bool) -> bool: |
| 37 | raw = str(os.environ.get(name, "") or "").strip().lower() |
| 38 | if not raw: |
| 39 | return default |
| 40 | return raw in {"1", "true", "yes", "on"} |
| 41 | |
| 42 | |
| 43 | def get_database_backend(database_url: str) -> str: |
no test coverage detected