refactor(db): move the heard-IATA lookup into sqlc

This commit is contained in:
MrAlders0n
2026-10-02 16:53:32 -04:00
committed by MrAlders0n
parent b30668bac4
commit ec0ecd321b
5 changed files with 44 additions and 5 deletions
+1
View File
@@ -200,6 +200,7 @@ type Querier interface {
// Only complete hours whose raw rows are still intact can be re-rolled. Queued missing hours
// wait: their first roll consumes the entry only if the entry predates its snapshot.
ListDirtyRollupHours(ctx context.Context, limit int32) ([]pgtype.Timestamptz, error)
ListHeardIATAs(ctx context.Context) ([]string, error)
ListIATAs(ctx context.Context) ([]IataCode, error)
// Only one branch runs. Keep the IATA range ordered by the composite index:
// generic plans can otherwise prefer scanning the global timestamp index.