-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
refactor: create sql parser spi and a druid type sql parser #1703
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1703 +/- ##
=============================================
- Coverage 54.38% 54.38% -0.01%
- Complexity 2459 2461 +2
=============================================
Files 445 445
Lines 14860 14858 -2
Branches 1765 1764 -1
=============================================
- Hits 8082 8080 -2
Misses 6001 6001
Partials 777 777
|
rm-datasource/src/main/java/io/seata/rm/datasource/sql/struct/TableMeta.java
Outdated
Show resolved
Hide resolved
...ta-sqlparser-druid/src/main/java/io/seata/sqlparser/druid/oracle/OracleInsertRecognizer.java
Outdated
Show resolved
Hide resolved
15e4ece
to
6dff95d
Compare
de996aa
to
cb27e2f
Compare
ccf5acc
to
d77fb59
Compare
99a9eb3
to
35ae2de
Compare
@ggndnn please fix the conflict |
Ok, I will fix it. |
fa7542c
to
af5e5bd
Compare
@lovepoem fixed. |
core/src/main/java/io/seata/core/constants/ConfigurationKeys.java
Outdated
Show resolved
Hide resolved
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.
LGTM
ead1212
to
bfea9f0
Compare
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.
LGTM
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.
LGTM
rm-datasource/src/main/java/io/seata/rm/datasource/sql/SQLVisitorFactory.java
Show resolved
Hide resolved
* 'develop' of https://github.com/seata/seata: (125 commits) optimize: tcc module code style (apache#2103) refactor: change the package path of MySQL recognizer (apache#2125) optimize: fix query typo (apache#2176) refactor: add sql parser type druid as constant (apache#2156) test: enhance test coverage of seata common (apache#2170) optimize: gracefully close resources (apache#2139) Feature: Saga provide a switch to skip branch report on branch success, in order to optimize performance. (apache#2151) chore:use serializer instead of codec (apache#2097) optimize: spring module code style (apache#2159) optimize: Add Dubbo compatibility (apache#2036) optimize : seata-rm-datasource module code style (apache#2062) bugfix: Saga report branch status incorrect when service retried succeed (apache#2145) optimize:optimize log specifications (apache#2146) bugfix: when branchRollback failed, it will trigger retry of multi-tc. (apache#2113) refactor: create sql parser spi and a druid type sql parser (apache#1703) refactor: simplify to make seata-common more readable (apache#2038) feature: support FastThreadLocalContextCore (apache#2106) optimize: some typos (apache#2120) optimize: increase the oracle table meta cache code coverage (apache#2078) optimize: some typos (apache#2115) ... # Conflicts: # pom.xml
Ⅰ. Describe what this PR did
This PR extracted sql parser part from rm-datasource to create sql parser SPI (seata-sqlparser-core), all imports from druid in rm-datasource were removed except unit test code. Druid related code was moved to a new project seata-sqlparser-druid where a druid type sql parser was implemented.
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews