-
Notifications
You must be signed in to change notification settings - Fork 20
chore: add type info and skip redundant regex adding #192
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
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
PR Type
Enhancement, Bug fix
Description
Uncommented and activated SQL type mapping with type codes
Changed regex pattern handling to skip result file patterns
Enhanced config loading to prioritize project root directory
Updated tests to verify regex patterns only from SQL files
Diagram Walkthrough
File Walkthrough
RESULT.java
Activate SQL type name mapping with type codessrc/main/java/io/mo/constant/RESULT.java
java.sql.Typesimport statementTYPE_NAME_MAPstatic initialization blockBaseConfigUtil.java
Enhance config loading with root directory prioritysrc/main/java/io/mo/util/BaseConfigUtil.java
System.getProperty("user.dir")loading strategy
ResultParser.java
Skip regex patterns from result filessrc/main/java/io/mo/util/ResultParser.java
RegexPatternandjava.util.regex.PatternparseRegexPatternsFromResulttoskipRegexPatternsFromResultparsing them
are used
RegexParsingTest.java
Update tests for regex pattern precedencesrc/test/java/io/mo/util/RegexParsingTest.java
testParseRegexFromResultFiletest to verify regex patterns areskipped
testSqlFileRegexPatternsTakePrecedenceto verify SQLfile patterns work
patterns are preserved