• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mpyw / sql-http-proxy / 20805587254

08 Jan 2026 04:32AM UTC coverage: 51.867%. First build
20805587254

push

github

mpyw
refactor: restructure project with proper package separation

Major changes:
- Reorganized to internal/ package layout
  - internal/cli/commands/ - CLI entry point
  - internal/config/ - Config parsing and validation
  - internal/db/ - Database connection management
  - internal/js/ - JavaScript transform execution (renamed from transform)
  - internal/server/ - HTTP handlers and routing
- Split handler.go into focused files
  - handler.go - Shared types and utilities
  - query_handler.go - Query handlers
  - mutation_handler.go - Mutation handlers
  - server.go - ServeMux setup
- Simplified app.go to use new package APIs
  - config.ValidateTransforms()
  - db.Connect()
  - server.NewServeMux()
- Added comprehensive e2e tests with 1:1 test/config file naming
- Added golangci-lint configuration
- Native Error objects always return 500 (security: don't trust user JS)
- Fixed test file naming conventions for clarity

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

504 of 969 new or added lines in 10 files covered. (52.01%)

514 of 991 relevant lines covered (51.87%)

15.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.23
/internal/server/query_handler.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc