fix: validate column names with snake_case and camelCase support#94
Conversation
ren0503
commented
Jan 19, 2026
- Replace validator.IsAlphanumeric with regex pattern for column validation
- Support snake_case columns (e.g., employee_id, created_at)
- Support camelCase columns (e.g., firstName, lastName)
- Support qualified table.column format
- Add test cases for valid column name patterns
- Replace validator.IsAlphanumeric with regex pattern for column validation - Support snake_case columns (e.g., employee_id, created_at) - Support camelCase columns (e.g., firstName, lastName) - Support qualified table.column format - Add test cases for valid column name patterns
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughReplaces external validator dependency with Go's built-in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.5.0)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |