-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
feature: support shentong database #6864
Open
dsomehan
wants to merge
25
commits into
apache:2.x
Choose a base branch
from
dsomehan:feature_support_shentong_database
base: 2.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Maybe you can provide more detailed changes you made? |
Prerequisites: Oscar database engine is basically compatible with Oracle syntax,
前提:神通oscar数据库基本兼容oracle语法,
|
基本上的改动就是这些,主要是添加了神通数据库支持 |
客户端的适配我在druid里提供了pr,在合并之前如果需要使用可以参考 import com.alibaba.druid.util.JdbcUtils;
import io.seata.common.loader.LoadLevel;
import io.seata.sqlparser.util.DbTypeParser;
@LoadLevel(name = "druid", order = 1)
public class OscarDbTypeParser implements DbTypeParser {
public OscarDbTypeParser() {
}
@Override
public String parseFromJdbcUrl(String jdbcUrl) {
if (jdbcUrl.startsWith("jdbc:oscar:")) {
return "oscar";
}
return JdbcUtils.getDbType(jdbcUrl, null);
}
} |
dsomehan
force-pushed
the
feature_support_shentong_database
branch
from
September 23, 2024 06:06
0680ac9
to
d31610b
Compare
funky-eyes
added
first-time contributor
first-time contributor
module/rm-datasource
rm-datasource module
module/sqlparser
sql-parser module
module/common
common module
labels
Sep 26, 2024
funky-eyes
reviewed
Sep 30, 2024
...ource/src/main/java/org/apache/seata/rm/datasource/sql/handler/oscar/OscarEscapeHandler.java
Outdated
Show resolved
Hide resolved
funky-eyes
reviewed
Oct 1, 2024
core/src/main/java/org/apache/seata/core/store/db/sql/log/OscarLogStoreSqls.java
Outdated
Show resolved
Hide resolved
funky-eyes
reviewed
Oct 8, 2024
...asource/src/main/java/org/apache/seata/rm/datasource/undo/oscar/OscarUndoExecutorHolder.java
Outdated
Show resolved
Hide resolved
...parser-druid/src/main/java/org/apache/seata/sqlparser/druid/oscar/OscarDeleteRecognizer.java
Outdated
Show resolved
Hide resolved
...parser-druid/src/main/java/org/apache/seata/sqlparser/druid/oscar/OscarInsertRecognizer.java
Outdated
Show resolved
Hide resolved
...uid/src/main/java/org/apache/seata/sqlparser/druid/oscar/OscarSelectForUpdateRecognizer.java
Outdated
Show resolved
Hide resolved
...uid/src/main/java/org/apache/seata/sqlparser/druid/oscar/OscarSelectForUpdateRecognizer.java
Outdated
Show resolved
Hide resolved
...parser-druid/src/main/java/org/apache/seata/sqlparser/druid/oscar/OscarUpdateRecognizer.java
Outdated
Show resolved
Hide resolved
...parser-druid/src/main/java/org/apache/seata/sqlparser/druid/oscar/OscarDeleteRecognizer.java
Outdated
Show resolved
Hide resolved
...parser-druid/src/main/java/org/apache/seata/sqlparser/druid/oscar/OscarInsertRecognizer.java
Outdated
Show resolved
Hide resolved
…/sqlparser/druid/oscar/OscarInsertRecognizer.java Co-authored-by: funkye <364176773@qq.com>
…/sqlparser/druid/oscar/OscarSelectForUpdateRecognizer.java Co-authored-by: funkye <364176773@qq.com>
…/sqlparser/druid/oscar/OscarSelectForUpdateRecognizer.java Co-authored-by: funkye <364176773@qq.com>
…o/oscar/OscarUndoExecutorHolder.java Co-authored-by: funkye <364176773@qq.com>
…/sqlparser/druid/oscar/OscarDeleteRecognizer.java Co-authored-by: funkye <364176773@qq.com>
…/sqlparser/druid/oscar/OscarUpdateRecognizer.java Co-authored-by: funkye <364176773@qq.com>
…/sqlparser/druid/oscar/OscarInsertRecognizer.java Co-authored-by: funkye <364176773@qq.com>
…/sqlparser/druid/oscar/OscarDeleteRecognizer.java Co-authored-by: funkye <364176773@qq.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
first-time contributor
first-time contributor
mode: AT
AT transaction mode
module/common
common module
module/rm-datasource
rm-datasource module
module/sqlparser
sql-parser module
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ⅰ. Describe what this PR did
Ⅱ. 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