MCPcopy Index your code
hub / github.com/AutoForgeAI/autoforge / get_database_url

Function get_database_url

api/database.py:190–196  ·  view source on GitHub ↗

Return the SQLAlchemy database URL for a project. Uses POSIX-style paths (forward slashes) for cross-platform compatibility.

(project_dir: Path)

Source from the content-addressed store, hash-verified

188
189
190def 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
199def _migrate_add_in_progress_column(engine) -> None:

Callers 1

create_databaseFunction · 0.85

Calls 1

get_database_pathFunction · 0.85

Tested by

no test coverage detected