Spaces:
Sleeping
Sleeping
Download backend/app/database.py from jinksQspider/SSC: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/jinksQspider/SSC/resolve/main/backend/app/database.py
- Command line
-
hf download hf://spaces/jinksQspider/SSC/backend/app/database.py
-
curl -L -o database.py https://huggingface.co/spaces/jinksQspider/SSC/resolve/main/backend/app/database.py
466 Bytes
| from contextlib import contextmanager | |
| class _NoDatabase: | |
| """Compatibility object for legacy dependencies while moving to Firestore-only.""" | |
| def _noop_db_context(): | |
| yield _NoDatabase() | |
| def get_db(): | |
| """Legacy dependency kept for backward compatibility with route signatures.""" | |
| with _noop_db_context() as db: | |
| yield db | |
| def init_db(): | |
| """No-op: Firestore does not require SQL table initialization.""" | |
| return None | |