routewatch/internal/database
sneak 54bb0ba1cb Simplify peerings table to store AS numbers directly
- Rename asn_peerings table to peerings
- Change columns from from_asn_id/to_asn_id to as_a/as_b (integers)
- Remove foreign key constraints to asns table
- Update RecordPeering to use AS numbers directly
- Add validation in RecordPeering to ensure:
  - Both AS numbers are > 0
  - AS numbers are different
  - as_a is always lower than as_b (normalized)
- Update PeeringHandler to no longer need ASN cache
- Simplify the code by removing unnecessary ASN lookups
2025-07-28 02:36:15 +02:00
..
database.go Simplify peerings table to store AS numbers directly 2025-07-28 02:36:15 +02:00
interface.go Simplify peerings table to store AS numbers directly 2025-07-28 02:36:15 +02:00
models.go Add live routing table with CIDR mask length tracking 2025-07-28 01:51:42 +02:00
schema.sql Simplify peerings table to store AS numbers directly 2025-07-28 02:36:15 +02:00
slowquery.go Add custom logger with source location tracking and remove verbose database logs 2025-07-28 01:14:51 +02:00
utils.go Initial commit: RouteWatch BGP stream monitor 2025-07-27 21:18:57 +02:00