(improvement)(chat) Extend support for PostgreSQL data source. (#635)

This commit is contained in:
lexluo09
2024-01-17 12:55:28 +08:00
committed by GitHub
parent 7707179faa
commit 74b89a9430
28 changed files with 391 additions and 45 deletions

View File

@@ -40,7 +40,9 @@ public enum DataType {
IMPALA("impala", "impala", "com.cloudera.impala.jdbc41.Driver", "", "", "'", "'"),
TDENGINE("TAOS", "TAOS", "com.taosdata.jdbc.TSDBDriver", "'", "'", "\"", "\"");
TDENGINE("TAOS", "TAOS", "com.taosdata.jdbc.TSDBDriver", "'", "'", "\"", "\""),
POSTGRESQL("postgresql", "postgresql", "org.postgresql.Driver", "'", "'", "\"", "\"");
private String feature;
private String desc;

View File

@@ -8,7 +8,8 @@ public enum EngineType {
DORIS(2, "doris"),
CLICKHOUSE(3, "clickhouse"),
KAFKA(4, "kafka"),
H2(5, "h2");
H2(5, "h2"),
POSTGRESQL(6, "postgresql");
private Integer code;

View File

@@ -30,6 +30,7 @@ public class DatabaseReq {
private String description;
private String schema;
private String url;
private List<String> admins = Lists.newArrayList();

View File

@@ -40,6 +40,8 @@ public class DatabaseResp extends RecordInfo {
private String version;
private String schema;
private boolean hasPermission = false;
private boolean hasUsePermission = false;