Return the SQLAlchemy database URL for a project. Uses POSIX-style paths (forward slashes) for cross-platform compatibility.
(project_dir: Path)
| 188 | |
| 189 | |
| 190 | def get_database_url(project_dir: Path) -> str: |
| 191 | """Return the SQLAlchemy database URL for a project. |
| 192 | |
| 193 | Uses POSIX-style paths (forward slashes) for cross-platform compatibility. |
| 194 | """ |
| 195 | db_path = get_database_path(project_dir) |
| 196 | return f"sqlite:///{db_path.as_posix()}" |
| 197 | |
| 198 | |
| 199 | def _migrate_add_in_progress_column(engine) -> None: |
no test coverage detected