mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
(feature)(headless)Add oracle engine type and db adaptor.
This commit is contained in:
@@ -13,7 +13,8 @@ public enum EngineType {
|
|||||||
STARROCKS(10, "STARROCKS"),
|
STARROCKS(10, "STARROCKS"),
|
||||||
KYUUBI(11, "KYUUBI"),
|
KYUUBI(11, "KYUUBI"),
|
||||||
PRESTO(12, "PRESTO"),
|
PRESTO(12, "PRESTO"),
|
||||||
TRINO(13, "TRINO"),;
|
TRINO(13, "TRINO"),
|
||||||
|
ORACLE(14, "ORACLE");
|
||||||
|
|
||||||
private Integer code;
|
private Integer code;
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ public class DbAdaptorFactory {
|
|||||||
dbAdaptorMap.put(EngineType.KYUUBI.getName(), new KyuubiAdaptor());
|
dbAdaptorMap.put(EngineType.KYUUBI.getName(), new KyuubiAdaptor());
|
||||||
dbAdaptorMap.put(EngineType.PRESTO.getName(), new PrestoAdaptor());
|
dbAdaptorMap.put(EngineType.PRESTO.getName(), new PrestoAdaptor());
|
||||||
dbAdaptorMap.put(EngineType.TRINO.getName(), new TrinoAdaptor());
|
dbAdaptorMap.put(EngineType.TRINO.getName(), new TrinoAdaptor());
|
||||||
|
dbAdaptorMap.put(EngineType.ORACLE.getName(), new OracleAdaptor());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DbAdaptor getEngineAdaptor(String engineType) {
|
public static DbAdaptor getEngineAdaptor(String engineType) {
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package com.tencent.supersonic.headless.core.adaptor.db;
|
||||||
|
|
||||||
|
public class OracleAdaptor extends DefaultDbAdaptor {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user