routewatch/internal/database
sneak ddb3cfa4f0 Add mutex to serialize database access
- Add internal mutex to Database struct with lock/unlock wrappers
- Add debug logging for lock acquisition and release with timing
- Wrap all write operations with database mutex
- Use _txlock=immediate in SQLite connection string

This works around apparent issues with SQLite's internal locking
not properly respecting busy_timeout in production environment.
2025-07-28 17:56:26 +02:00
..
database_test.go Add IPv4 range optimization for IP to AS lookups 2025-07-28 03:23:25 +02:00
database.go Add mutex to serialize database access 2025-07-28 17:56:26 +02:00
interface.go Optimize database batch operations with prepared statements 2025-07-28 17:21:40 +02:00
models.go Optimize database batch operations with prepared statements 2025-07-28 17:21:40 +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