-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature][sql-gateway] Complete sql-gateway services (#629)
* [Feature][sql-gateway] Add CatalogService * [Feature][sql-gateway] Complete sql gateway services * [Feature][sql-gateway] Add listOptions in OperationService * [Bugfix][sql-gateway] Fix sql-gateway errors * [Feature][sql-gateway] Update session configuration after configureSession operation * [Format] Format mysql script * [Feature][sql-gateway] Add previewStatement method * [Feature][sql-gateway] Add limitation previewStatement method * [Feature][sql-gateway] Add limitation previewStatement method * [Feature][sql-gateway] Simplify previewStatement method * [Bugfix][sql-gateway] Fix flink sql gateway dependency error * [Bugfix][sql-gateway] Fix flink sql gateway dependency error * [Bugfix][sql-gateway] Fix flink sql gateway startup error when default catalog was set. format code
- Loading branch information
Showing
41 changed files
with
1,753 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...eph-dao/src/main/java/cn/sliew/scaleph/dao/entity/master/ws/WsFlinkSqlGatewayCatalog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package cn.sliew.scaleph.dao.entity.master.ws; | ||
|
||
import cn.sliew.scaleph.dao.entity.BaseDO; | ||
import com.baomidou.mybatisplus.annotation.TableField; | ||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
@TableName("ws_flink_sql_gateway_catalog") | ||
public class WsFlinkSqlGatewayCatalog extends BaseDO { | ||
|
||
@TableField("session_handler") | ||
private String sessionHandler; | ||
|
||
@TableField("catalog_name") | ||
private String catalogName; | ||
|
||
@TableField("catalog_options") | ||
private String catalogOptions; | ||
|
||
@TableField("catalog_description") | ||
private String catalogDescription; | ||
|
||
@TableField("catalog_dependencies") | ||
private String catalogDependencies; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...o/src/main/java/cn/sliew/scaleph/dao/mapper/master/ws/WsFlinkSqlGatewayCatalogMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package cn.sliew.scaleph.dao.mapper.master.ws; | ||
|
||
import cn.sliew.scaleph.dao.entity.master.ws.WsFlinkSqlGatewayCatalog; | ||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import org.springframework.stereotype.Repository; | ||
|
||
/** | ||
* <p> | ||
* flink sql gateway catalog mapper | ||
* </p> | ||
*/ | ||
@Repository | ||
public interface WsFlinkSqlGatewayCatalogMapper extends BaseMapper<WsFlinkSqlGatewayCatalog> { | ||
|
||
} |
46 changes: 46 additions & 0 deletions
46
...c/main/resources/cn/sliew/scaleph/dao/mapper/master/ws/WsFlinkSqlGatewayCatalogMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
~ contributor license agreements. See the NOTICE file distributed with | ||
~ this work for additional information regarding copyright ownership. | ||
~ The ASF licenses this file to You under the Apache License, Version 2.0 | ||
~ (the "License"); you may not use this file except in compliance with | ||
~ the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
<mapper namespace="cn.sliew.scaleph.dao.mapper.master.ws.WsFlinkSqlGatewayCatalogMapper"> | ||
<!-- 通用查询映射结果 --> | ||
<resultMap id="BaseResultMap" type="cn.sliew.scaleph.dao.entity.master.ws.WsFlinkSqlGatewayCatalog"> | ||
<result column="id" property="id"/> | ||
<result column="creator" property="creator"/> | ||
<result column="create_time" property="createTime"/> | ||
<result column="editor" property="editor"/> | ||
<result column="update_time" property="updateTime"/> | ||
<result column="session_handler" property="sessionHandler"/> | ||
<result column="catalog_name" property="catalogName"/> | ||
<result column="catalog_options" property="catalogOptions"/> | ||
<result column="catalog_description" property="catalogDescription"/> | ||
</resultMap> | ||
|
||
<!-- 通用查询结果列 --> | ||
<sql id="Base_Column_List"> | ||
id, | ||
creator, | ||
create_time, | ||
editor, | ||
update_time, | ||
session_handler, | ||
`catalog_name`, | ||
catalog_options, | ||
catalog_description | ||
</sql> | ||
</mapper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.