skyview/internal/database
Ole-Morten Duesund 41c7758f69 feat: Eliminate CGO dependency by switching to pure Go SQLite
Replaced github.com/mattn/go-sqlite3 (CGO-based) with modernc.org/sqlite
(pure Go implementation) to enable CGO-free builds while maintaining
full SQLite functionality.

Benefits:
-  Cross-compilation without C compiler requirements
-  Simplified build environment (no CGO_ENABLED=1)
-  Reduced deployment dependencies
-  Easier container builds and static linking
-  Full SQLite compatibility maintained

Changes:
- Updated go.mod to use modernc.org/sqlite v1.34.4
- Updated database import to use pure Go SQLite driver
- Removed CGO_ENABLED=1 from all Makefile build targets
- Verified all binaries (skyview, beast-dump, skyview-data) build successfully

The modernc.org/sqlite package is a cgo-free port of SQLite that transpiles
the original C code to Go, providing identical functionality without CGO.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-01 19:53:07 +02:00
..
api_client.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
database.go feat: Eliminate CGO dependency by switching to pure Go SQLite 2025-09-01 19:53:07 +02:00
database_test.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
loader.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
loader_test.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
manager_callsign.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
manager_callsign_test.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
manager_history.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
migrations.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
optimization.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
optimization_test.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
path.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00
test_helpers.go style: Apply code formatting with go fmt 2025-09-01 10:05:29 +02:00