package tech.easyflow.datacenter.connector;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.row.Row;
import tech.easyflow.datacenter.entity.DatacenterTable;
import tech.easyflow.datacenter.execution.model.DatacenterQueryRequest;
import tech.easyflow.datacenter.meta.entity.DatacenterSource;

import java.util.List;

public interface QueryExecutor {
    Page<Row> queryPage(DatacenterSource source, DatacenterTable table, DatacenterQueryRequest request);

    List<Row> queryBySql(DatacenterSource source, String sql);
}
