Spaces:
Runtime error
Runtime error
Download database/__init__.py from Rathesh07/speed_camera_detector: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/spaces/Rathesh07/speed_camera_detector/resolve/main/database/__init__.py
- Command line
-
hf download hf://spaces/Rathesh07/speed_camera_detector/database/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Rathesh07/speed_camera_detector/resolve/main/database/__init__.py
1.09 kB
| """ | |
| Database package for Navigation App. | |
| PostgreSQL + PostGIS with async SQLAlchemy. | |
| """ | |
| from .database import ( | |
| AsyncSessionLocal, | |
| check_db_health, | |
| close_db, | |
| get_db, | |
| init_db, | |
| ) | |
| from .models import ( | |
| HazardDetection, | |
| RoadSpeedLimit, | |
| SpeedCamera, | |
| User, | |
| UserCameraReport, | |
| UserSpeedLimitReport, | |
| ) | |
| from .queries import ( | |
| create_road_speed_limit, | |
| create_speed_camera, | |
| get_nearby_hazards, | |
| get_nearby_speed_cameras, | |
| get_nearby_speed_limits, | |
| get_speed_cameras_along_route, | |
| get_speed_limits_along_route, | |
| ) | |
| __all__ = [ | |
| # Database connection | |
| "get_db", | |
| "init_db", | |
| "close_db", | |
| "check_db_health", | |
| "AsyncSessionLocal", | |
| # Models | |
| "User", | |
| "SpeedCamera", | |
| "RoadSpeedLimit", | |
| "HazardDetection", | |
| "UserCameraReport", | |
| "UserSpeedLimitReport", | |
| # Query functions | |
| "get_nearby_speed_cameras", | |
| "get_nearby_speed_limits", | |
| "get_nearby_hazards", | |
| "get_speed_cameras_along_route", | |
| "get_speed_limits_along_route", | |
| "create_speed_camera", | |
| "create_road_speed_limit", | |
| ] | |