-
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
feature: support shentong database #6864
Conversation
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);
}
} |
0680ac9
to
d31610b
Compare
...ource/src/main/java/org/apache/seata/rm/datasource/sql/handler/oscar/OscarEscapeHandler.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/seata/core/store/db/sql/log/OscarLogStoreSqls.java
Outdated
Show resolved
Hide resolved
...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 <[email protected]>
…/sqlparser/druid/oscar/OscarSelectForUpdateRecognizer.java Co-authored-by: funkye <[email protected]>
…/sqlparser/druid/oscar/OscarSelectForUpdateRecognizer.java Co-authored-by: funkye <[email protected]>
…o/oscar/OscarUndoExecutorHolder.java Co-authored-by: funkye <[email protected]>
…/sqlparser/druid/oscar/OscarDeleteRecognizer.java Co-authored-by: funkye <[email protected]>
…/sqlparser/druid/oscar/OscarUpdateRecognizer.java Co-authored-by: funkye <[email protected]>
…/sqlparser/druid/oscar/OscarInsertRecognizer.java Co-authored-by: funkye <[email protected]>
…/sqlparser/druid/oscar/OscarDeleteRecognizer.java Co-authored-by: funkye <[email protected]>
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
Ⅰ. 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