routewatch/internal/database
sneak b9b0792df9 Fix shutdown handling and optimize SQLite settings
- Fix Ctrl-C shutdown by using fx.Shutdowner instead of just canceling context
- Pass context from fx lifecycle to rw.Run() for proper cancellation
- Adjust WAL settings: checkpoint at 50MB, max size 100MB
- Reduce busy timeout from 30s to 2s to fail fast on lock contention

This should fix the issue where Ctrl-C doesn't cause shutdown and improve
database responsiveness under heavy load.
2025-07-28 16:52:52 +02:00
..
database_test.go Add IPv4 range optimization for IP to AS lookups 2025-07-28 03:23:25 +02:00
database.go Fix shutdown handling and optimize SQLite settings 2025-07-28 16:52:52 +02:00
interface.go Refactor server package: split handlers and routes into separate files 2025-07-28 04:00:12 +02:00
models.go Add route age information to IP lookup API 2025-07-28 03:44:19 +02:00
schema.sql Add IPv4 range optimization for IP to AS lookups 2025-07-28 03:23:25 +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 Add IPv4 range optimization for IP to AS lookups 2025-07-28 03:23:25 +02:00