mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-21 19:44:49 +00:00
支持es写入
This commit is contained in:
@@ -242,7 +242,7 @@ public class ReaderTaskThread extends TaskProcessor<ReaderTaskResult> {
|
||||
properties.getTarget().setTargetDrop(true);
|
||||
}
|
||||
|
||||
if (targetProductType.isMongodb()) {
|
||||
if (targetProductType.isMongodb() || targetProductType.isElasticSearch()) {
|
||||
try {
|
||||
targetFactoryProvider.createTableManageProvider()
|
||||
.dropTable(targetSchemaName, targetTableName);
|
||||
|
@@ -65,7 +65,7 @@ public final class DataSourceUtils {
|
||||
ds.setConnectionTestQuery("SELECT 1 FROM SYSIBM.SYSDUMMY1");
|
||||
} else if (properties.getDriverClassName().contains("mongodb")) {
|
||||
ds.setConnectionTestQuery("use admin;");
|
||||
} else {
|
||||
} else if (!ds.getJdbcUrl().contains("jdbc:jest://")) {
|
||||
ds.setConnectionTestQuery("SELECT 1");
|
||||
}
|
||||
ds.setMaximumPoolSize(MAX_THREAD_COUNT);
|
||||
@@ -107,7 +107,7 @@ public final class DataSourceUtils {
|
||||
ds.setConnectionTestQuery("SELECT 1 FROM SYSIBM.SYSDUMMY1");
|
||||
} else if (properties.getDriverClassName().contains("mongodb")) {
|
||||
ds.setConnectionTestQuery("use admin;");
|
||||
} else {
|
||||
} else if (!ds.getJdbcUrl().contains("jdbc:jest://")) {
|
||||
ds.setConnectionTestQuery("SELECT 1");
|
||||
}
|
||||
if (properties.getDriverClassName().contains("sqlite")) {
|
||||
|
Reference in New Issue
Block a user