Johan review
This commit is contained in:
parent
d9b3b403da
commit
7845570819
3 changed files with 53 additions and 31 deletions
|
|
@ -12,8 +12,14 @@ Root directory:
|
|||
- **README.md**: High-level documentation and usage instructions.
|
||||
- **EVENT_FORMATS.json**: Example JSON payloads for all event types (`telemetry`, `spawn`, `chat`, `rare`).
|
||||
- **db.py**: Legacy SQLite-based storage (telemetry_log & live_state tables, WAL mode, auto-vacuum).
|
||||
- **db_async.py**: Async database definitions for PostgreSQL/TimescaleDB:
|
||||
- Table schemas (SQLAlchemy Core): `telemetry_events`, `char_stats`, `rare_stats`, `rare_stats_sessions`, `spawn_events`.
|
||||
- **db_async.py**: Async database definitions for PostgreSQL/TimescaleDB:
|
||||
- Table schemas (SQLAlchemy Core):
|
||||
- `telemetry_events`,
|
||||
- `char_stats`,
|
||||
- `rare_stats`,
|
||||
- `rare_stats_sessions`,
|
||||
- `spawn_events`,
|
||||
- `rare_events`.
|
||||
- `init_db_async()`: Creates tables, enables TimescaleDB extension, and configures a hypertable on `telemetry_events`.
|
||||
- **main.py**: The FastAPI application:
|
||||
- HTTP endpoints: `/debug`, `/live`, `/history`, `/trails`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue