from fastapi import Depends from sqlalchemy.orm import Session from app.db import get_db from packages.adapters.sqlalchemy_impl import ( SQLAlchemyAssetLibraryRepository, SQLAlchemyAssetRepository, SQLAlchemyIngestJobRepository, SQLAlchemyProjectRepository, ) def get_project_repository(db: Session = Depends(get_db)) -> SQLAlchemyProjectRepository: return SQLAlchemyProjectRepository(db) def get_asset_library_repository(db: Session = Depends(get_db)) -> SQLAlchemyAssetLibraryRepository: return SQLAlchemyAssetLibraryRepository(db) def get_asset_repository(db: Session = Depends(get_db)) -> SQLAlchemyAssetRepository: return SQLAlchemyAssetRepository(db) def get_ingest_job_repository(db: Session = Depends(get_db)) -> SQLAlchemyIngestJobRepository: return SQLAlchemyIngestJobRepository(db)