-
-
Notifications
You must be signed in to change notification settings - Fork 12
Add ColumnDefinitionParser class
#416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #416 +/- ##
============================================
+ Coverage 98.62% 98.66% +0.03%
- Complexity 247 249 +2
============================================
Files 26 27 +1
Lines 800 823 +23
============================================
+ Hits 789 812 +23
Misses 11 11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a ColumnDefinitionParser class for MS SQL Server to parse column type definitions and their parameters. This is part of the broader refactoring in the yiisoft/db package (related to PR #1108).
Key Changes
- Implements
ColumnDefinitionParserclass extendingAbstractColumnDefinitionParserto handle MSSQL-specific type parameter parsing - Integrates the parser into
ColumnFactoryvia thecolumnDefinitionParser()method - Adds test coverage through
ColumnDefinitionParserTestextending common test base
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/Column/ColumnDefinitionParser.php | New parser class implementing parseTypeParams() to handle size/precision/scale parsing for MSSQL column types |
| src/Column/ColumnFactory.php | Adds columnDefinitionParser() method to instantiate and return the new parser |
| tests/ColumnDefinitionParserTest.php | New test class extending common test base to verify parser functionality |
| CHANGELOG.md | Documents the addition of ColumnDefinitionParser class in version 2.0.0 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Related to yiisoft/db#1108