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; }