| | |
| | | public class TableToJsonWeb { |
| | | |
| | | //show create table c_orders 用这个语句获取 |
| | | public static final String createTableSql = "CREATE TABLE business_dockerfile(\n" + |
| | | " `id` varchar(64) NOT NULL comment '编号',\n" + |
| | | " `name` varchar(64) NOT NULL comment '名称',\n" + |
| | | " `dockerfile` varchar(10000) NOT NULL comment '内容'\n" + |
| | | public static final String createTableSql = "CREATE TABLE business_images(\n" + |
| | | " `id` varchar(64) PRIMARY KEY NOT NULL comment '编号',\n" + |
| | | " `name` varchar(64) NOT NULL comment '镜像名称',\n" + |
| | | " images_type varchar(12) not null comment '镜像类型',\n" + |
| | | " type_url varchar(512) not null comment '镜像url',\n" + |
| | | " images_flag varchar(12) not null comment '镜像标识'\n" + |
| | | ")"; |
| | | public static void main(String[] args) { |
| | | String templateName = "mydockerfile"; //业务名称 |
| | | String templateCode = "businessDockerfile"; //表名大写 |
| | | String templateName = "镜像"; //业务名称 |
| | | String templateCode = "businessImages"; //表名大写 |
| | | String templateKey = "id"; //表主键 |
| | | String templateKeyName = "编号";//主键说明 |
| | | String searchCode = "id"; //分片字段 |