From 40ecd125b49388c95aa70629d26f984071340b5d Mon Sep 17 00:00:00 2001 From: junjun Date: Thu, 20 Jun 2024 15:41:06 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E6=95=B0=E6=8D=AE=E6=BA=90=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datasource/provider/Provider.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/core/core-backend/src/main/java/io/dataease/datasource/provider/Provider.java b/core/core-backend/src/main/java/io/dataease/datasource/provider/Provider.java index e564f6c5d2..1617e237f6 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/provider/Provider.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/provider/Provider.java @@ -1,7 +1,28 @@ package io.dataease.datasource.provider; +import io.dataease.api.dataset.dto.DatasetTableDTO; +import io.dataease.api.ds.vo.TableField; +import io.dataease.datasource.dao.auto.entity.CoreDatasource; +import io.dataease.datasource.request.DatasourceRequest; +import io.dataease.exception.DEException; + +import java.sql.Connection; +import java.util.List; +import java.util.Map; + /** * @Author Junjun */ public abstract class Provider { + public abstract List getSchema(DatasourceRequest datasourceRequest); + + public abstract List getTables(DatasourceRequest datasourceRequest); + + public abstract Connection getConnection(CoreDatasource coreDatasource) throws DEException; + + public abstract String checkStatus(DatasourceRequest datasourceRequest) throws Exception; + + public abstract Map fetchResultField(DatasourceRequest datasourceRequest) throws DEException; + + public abstract List fetchTableField(DatasourceRequest datasourceRequest) throws DEException; }