__init__.py
python
sha256:7d6dd8f4a89e2d1fef2d84f6e65feaff51385d382f466766b7f690a22ec18e32
fix: fall back to DB ancestry check when mpack-only fast-fo…
Sonnet 4.6
patch
8 days ago
| 1 | """ |
| 2 | Database module for MuseHub. |
| 3 | |
| 4 | Provides async SQLAlchemy support for PostgreSQL. |
| 5 | """ |
| 6 | |
| 7 | from musehub.db.database import ( |
| 8 | get_db, |
| 9 | init_db, |
| 10 | close_db, |
| 11 | AsyncSessionLocal, |
| 12 | ) |
| 13 | from musehub.db import muse_cli_models as muse_cli_models # noqa: F401 — register CLI commit tables with Base |
| 14 | from musehub.db import musehub_repo_models as musehub_repo_models # noqa: F401 |
| 15 | from musehub.db import musehub_social_models as musehub_social_models # noqa: F401 |
| 16 | from musehub.db import musehub_release_models as musehub_release_models # noqa: F401 |
| 17 | from musehub.db import musehub_webhook_models as musehub_webhook_models # noqa: F401 |
| 18 | from musehub.db import musehub_intel_models as musehub_intel_models # noqa: F401 |
| 19 | from musehub.db import musehub_identity_models as musehub_identity_models # noqa: F401 |
| 20 | from musehub.db import musehub_abuse_models as musehub_abuse_models # noqa: F401 |
| 21 | from musehub.db import musehub_jobs_models as musehub_jobs_models # noqa: F401 |
| 22 | from musehub.db import musehub_label_models as musehub_label_models # noqa: F401 — register with Base |
| 23 | from musehub.db import musehub_collaborator_models as musehub_collaborator_models # noqa: F401 — register with Base |
| 24 | from musehub.db import musehub_auth_models as musehub_auth_models # noqa: F401 — register auth key table with Base |
| 25 | from musehub.db import coord_models as coord_models # noqa: F401 — register coordination bus table with Base |
| 26 | from musehub.db import musehub_domain_models as musehub_domain_models # noqa: F401 — register domain tables with Base |
| 27 | |
| 28 | __all__ = [ |
| 29 | "get_db", |
| 30 | "init_db", |
| 31 | "close_db", |
| 32 | "AsyncSessionLocal", |
| 33 | ] |
File History
1 commit
sha256:7d6dd8f4a89e2d1fef2d84f6e65feaff51385d382f466766b7f690a22ec18e32
fix: fall back to DB ancestry check when mpack-only fast-fo…
Sonnet 4.6
patch
8 days ago