-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrdb_sync.sql
More file actions
154 lines (144 loc) · 5.73 KB
/
rdb_sync.sql
File metadata and controls
154 lines (144 loc) · 5.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
-- ----------------------------
-- Table pipeline_dist
-- ----------------------------
create table `pipeline_dist` (
`id` varchar(32) not null comment 'ID',
`name` varchar(64) not null comment '名称',
`protocol` varchar(32) not null comment '协议',
primary key (`id`) using btree
) comment = '管道目标';
-- ----------------------------
-- Table pipeline_dist_mysql
-- ----------------------------
create table `pipeline_dist_mysql` (
`id` varchar(32) not null comment 'ID',
`host` varchar(255) comment '主机',
`port` int(11) comment '端口',
`database` varchar(255) not null comment '数据库名',
`username` varchar(255) comment '用户名',
`password` varchar(255) comment '密码',
`options` text comment '高级选项',
primary key (`id`) using btree
) comment = '管道目标-MySQL扩展';
-- ----------------------------
-- Table pipeline_dist_oracle
-- ----------------------------
create table `pipeline_dist_oracle` (
`id` varchar(32) not null comment 'ID',
`host` varchar(255) comment '主机',
`port` int(11) comment '端口',
`database` varchar(255) comment '数据库名',
`schema` varchar(255) not null comment '模式名',
`username` varchar(255) not null comment '用户名',
`password` varchar(255) not null comment '密码',
`options` text comment '高级选项',
primary key (`id`) using btree
) comment = '管道目标-Oracle扩展';
-- ----------------------------
-- Table pipeline_dist_postgres
-- ----------------------------
create table `pipeline_dist_postgres` (
`id` varchar(32) not null comment 'ID',
`hosts` text comment '主机列表',
`ports` varchar(255) comment '端口列表',
`database` varchar(255) not null comment '数据库名',
`schema` varchar(255) comment '模式名',
`username` varchar(255) comment '用户名',
`password` varchar(255) comment '密码',
`options` text comment '高级选项',
primary key (`id`) using btree
) comment = '管道目标-Postgres扩展';
-- ----------------------------
-- Table pipeline_dist_sqlserver
-- ----------------------------
create table `pipeline_dist_sqlserver` (
`id` varchar(32) not null comment 'ID',
`host` varchar(255) comment '主机',
`port` int(11) comment '端口',
`database` varchar(255) not null comment '数据库名',
`schema` varchar(255) comment '模式名',
`username` varchar(255) comment '用户名',
`password` varchar(255) not null comment '密码',
`options` text comment '高级选项',
primary key (`id`) using btree
) comment = '管道目标-SQLServer扩展';
-- ----------------------------
-- Table pipeline_dist_starrocks
-- ----------------------------
create table `pipeline_dist_starrocks` (
`id` varchar(32) not null comment 'ID',
`hosts` text comment 'FE-MySQL服务主机列表',
`ports` varchar(255) comment 'FE-MySQL服务端口列表',
`load_hosts` text comment 'FE-HTTP服务主机列表',
`load_ports` varchar(255) comment 'FE-HTTP服务端口列表',
`database` varchar(255) not null comment '数据库名',
`username` varchar(255) comment '用户名',
`password` varchar(255) comment '密码',
`options` text comment '高级选项',
primary key (`id`) using btree
) comment = '管道目标-StarRocks扩展';
-- ----------------------------
-- Table pipeline_source
-- ----------------------------
create table `pipeline_source` (
`id` varchar(32) not null comment 'ID',
`name` varchar(64) not null comment '名称',
`protocol` varchar(32) not null comment '协议',
primary key (`id`) using btree
) comment = '管道来源';
-- ----------------------------
-- Table pipeline_source_mysql
-- ----------------------------
create table `pipeline_source_mysql` (
`id` varchar(32) not null comment 'id',
`host` varchar(255) comment '主机',
`port` int(11) comment '端口',
`database` varchar(255) not null comment '数据库名',
`username` varchar(255) comment '用户名',
`password` varchar(255) comment '密码',
`options` text comment '高级选项',
primary key (`id`) using btree
) comment = '管道来源-MySQL扩展';
-- ----------------------------
-- Table pipeline_source_oracle
-- ----------------------------
create table `pipeline_source_oracle` (
`id` varchar(32) not null comment 'id',
`host` varchar(255) comment '主机',
`port` int comment '端口',
`database` varchar(255) comment '数据库名',
`schema` varchar(255) not null comment '模式名',
`username` varchar(255) not null comment '用户名',
`password` varchar(255) not null comment '密码',
`options` text comment '高级选项',
primary key (`id`) using btree
) comment = '管道来源-Oracle扩展';
-- ----------------------------
-- Table pipeline_source_postgres
-- ----------------------------
create table `pipeline_source_postgres` (
`id` varchar(32) not null comment 'id',
`host` varchar(255) comment '主机',
`port` int comment '端口',
`database` varchar(255) not null comment '数据库名',
`schema` varchar(255) comment '模式名',
`username` varchar(255) comment '用户名',
`password` varchar(255) comment '密码',
`slot_name` varchar(255) not null comment '槽名称',
`options` text comment '高级选项',
primary key (`id`) using btree
) comment = '管道来源-Postgres扩展';
-- ----------------------------
-- Table pipeline_source_sqlserver
-- ----------------------------
create table `pipeline_source_sqlserver` (
`id` varchar(32) not null comment 'id',
`host` varchar(255) comment '主机',
`port` int(11) comment '端口',
`database` varchar(255) not null comment '数据库名',
`schema` varchar(255) comment '模式名',
`username` varchar(255) comment '用户名',
`password` varchar(255) comment '密码',
`options` text comment '高级选项',
primary key (`id`) using btree
) comment = '管道来源-SQLServer扩展';