Expand description
Database connection pool, schema migrations, and typed query modules.
This module manages the PostgreSQL connection pool via sqlx and provides
the schema migration entry point. Submodules contain typed query functions
for each table:
| Module | Table | Purpose |
|---|---|---|
reflectors | reflectors | Registry of discovered D-STAR reflectors. |
activity | activity_log | Timestamped callsign observations. |
connected_nodes | connected_nodes | Live snapshot of linked nodes per reflector. |
streams | streams | Captured voice transmissions with audio. |
uploads | streams | Upload queue lifecycle management. |
The pool is shared across all tiers via sqlx::PgPool, which is cheaply
cloneable (it wraps an Arc internally).
Modulesยง
- activity ๐
- Query functions for the
activity_logtable. - connected_
nodes ๐ - Query functions for the
connected_nodestable. - migrations ๐
- Embedded SQL schema migrations.
- reflectors ๐
- Query functions for the
reflectorstable. - streams ๐
- Query functions for the
streamstable. - uploads ๐
- Query functions for the stream upload queue.