mirror of
https://github.com/WeiYe-Jing/datax-web.git
synced 2026-07-03 21:08:58 +08:00
项目结构调整
This commit is contained in:
parent
6847fe8e77
commit
da5443fed0
@ -1,4 +1,4 @@
|
||||
package database;
|
||||
package com.wugui.database;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package database;
|
||||
package com.wugui.database;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package database;
|
||||
package com.wugui.database;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@ -66,8 +66,8 @@ CREATE TABLE `job_config` (
|
||||
-- ----------------------------
|
||||
INSERT INTO `job_config` VALUES (1, NULL, 'test', 'test', NULL, NULL, NULL, '2019-06-17 21:10:31', 0, NULL, '2019-06-17 21:10:31', NULL);
|
||||
INSERT INTO `job_config` VALUES (2, NULL, 'testt', 'test', '{\n \"abc\": \"def\"\n}', NULL, NULL, '2019-06-17 22:22:03', 0, NULL, '2019-06-17 21:14:30', NULL);
|
||||
INSERT INTO `job_config` VALUES (3, NULL, '示例', 'test', '{\n \"job\": {\n \"setting\": {\n \"speed\": {\n \"channel\": 3\n },\n \"errorLimit\": {\n \"record\": 0,\n \"percentage\": 0.02\n }\n },\n \"content\": [\n {\n \"reader\": {\n \"name\": \"mysqlreader\",\n \"parameter\": {\n \"username\": \"root\",\n \"password\": \"root\",\n \"column\": [\n \"id\",\n \"name\"\n ],\n \"splitPk\": \"db_id\",\n \"connection\": [\n {\n \"table\": [\n \"table\"\n ],\n \"jdbcUrl\": [\n \"jdbc:mysql://127.0.0.1:3306/database\"\n ]\n }\n ]\n }\n },\n \"writer\": {\n \"name\": \"streamwriter\",\n \"parameter\": {\n \"print\": true\n }\n }\n }\n ]\n }\n}', NULL, NULL, '2019-06-17 22:28:21', 1, NULL, '2019-06-17 22:05:31', NULL);
|
||||
INSERT INTO `job_config` VALUES (4, NULL, 'test', '123', '{\n \"job\": {\n \"setting\": {\n \"speed\": {\n \"channel\": 3\n },\n \"errorLimit\": {\n \"record\": 0,\n \"percentage\": 0.02\n }\n },\n \"content\": [\n {\n \"reader\": {\n \"name\": \"mysqlreader\",\n \"parameter\": {\n \"username\": \"root\",\n \"password\": \"root\",\n \"column\": [\n \"id\",\n \"name\"\n ],\n \"splitPk\": \"db_id\",\n \"connection\": [\n {\n \"table\": [\n \"table\"\n ],\n \"jdbcUrl\": [\n \"jdbc:mysql://127.0.0.1:3306/database\"\n ]\n }\n ]\n }\n },\n \"writer\": {\n \"name\": \"streamwriter\",\n \"parameter\": {\n \"print\": true\n }\n }\n }\n ]\n }\n}', NULL, NULL, '2019-06-17 22:28:31', 1, NULL, '2019-06-17 22:28:31', NULL);
|
||||
INSERT INTO `job_config` VALUES (3, NULL, '示例', 'test', '{\n \"job\": {\n \"setting\": {\n \"speed\": {\n \"channel\": 3\n },\n \"errorLimit\": {\n \"record\": 0,\n \"percentage\": 0.02\n }\n },\n \"content\": [\n {\n \"reader\": {\n \"name\": \"mysqlreader\",\n \"parameter\": {\n \"username\": \"root\",\n \"password\": \"root\",\n \"column\": [\n \"id\",\n \"name\"\n ],\n \"splitPk\": \"db_id\",\n \"connection\": [\n {\n \"table\": [\n \"table\"\n ],\n \"jdbcUrl\": [\n \"jdbc:mysql://127.0.0.1:3306/com.wugui.database\"\n ]\n }\n ]\n }\n },\n \"writer\": {\n \"name\": \"streamwriter\",\n \"parameter\": {\n \"print\": true\n }\n }\n }\n ]\n }\n}', NULL, NULL, '2019-06-17 22:28:21', 1, NULL, '2019-06-17 22:05:31', NULL);
|
||||
INSERT INTO `job_config` VALUES (4, NULL, 'test', '123', '{\n \"job\": {\n \"setting\": {\n \"speed\": {\n \"channel\": 3\n },\n \"errorLimit\": {\n \"record\": 0,\n \"percentage\": 0.02\n }\n },\n \"content\": [\n {\n \"reader\": {\n \"name\": \"mysqlreader\",\n \"parameter\": {\n \"username\": \"root\",\n \"password\": \"root\",\n \"column\": [\n \"id\",\n \"name\"\n ],\n \"splitPk\": \"db_id\",\n \"connection\": [\n {\n \"table\": [\n \"table\"\n ],\n \"jdbcUrl\": [\n \"jdbc:mysql://127.0.0.1:3306/com.wugui.database\"\n ]\n }\n ]\n }\n },\n \"writer\": {\n \"name\": \"streamwriter\",\n \"parameter\": {\n \"print\": true\n }\n }\n }\n ]\n }\n}', NULL, NULL, '2019-06-17 22:28:31', 1, NULL, '2019-06-17 22:28:31', NULL);
|
||||
INSERT INTO `job_config` VALUES (5, NULL, NULL, NULL, '{}', NULL, NULL, '2019-06-25 10:28:51', 1, NULL, '2019-06-25 10:28:51', NULL);
|
||||
INSERT INTO `job_config` VALUES (6, NULL, NULL, NULL, '{}', NULL, NULL, '2019-06-25 10:47:59', 1, NULL, '2019-06-25 10:47:59', NULL);
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ package com.wugui.tool.meta;
|
||||
public interface DatabaseInterface {
|
||||
|
||||
/**
|
||||
* Returns the minimal SQL to launch in order to determine the layout of the resultset for a given database table
|
||||
* Returns the minimal SQL to launch in order to determine the layout of the resultset for a given com.wugui.database table
|
||||
*
|
||||
* @param tableName The name of the table to determine the layout for
|
||||
* @return The SQL to launch.
|
||||
|
||||
@ -8,9 +8,9 @@ import com.wugui.dataxweb.entity.JobJdbcDatasource;
|
||||
import com.wugui.tool.meta.DatabaseInterface;
|
||||
import com.wugui.tool.meta.DatabaseMetaFactory;
|
||||
import com.zaxxer.hikari.HikariDataSource;
|
||||
import database.ColumnInfo;
|
||||
import database.DasColumn;
|
||||
import database.TableInfo;
|
||||
import com.wugui.database.ColumnInfo;
|
||||
import com.wugui.database.DasColumn;
|
||||
import com.wugui.database.TableInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package com.wugui.tool.query;
|
||||
|
||||
import database.ColumnInfo;
|
||||
import database.TableInfo;
|
||||
import com.wugui.database.ColumnInfo;
|
||||
import com.wugui.database.TableInfo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@ -3,7 +3,7 @@ package com.wugui.tool.util;
|
||||
import com.wugui.dataxweb.entity.JobJdbcDatasource;
|
||||
import com.wugui.tool.query.BaseQueryTool;
|
||||
import com.wugui.tool.query.QueryToolFactory;
|
||||
import database.TableInfo;
|
||||
import com.wugui.database.TableInfo;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user