| | |
| | | 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 waf_ip_black_white(\n" + |
| | | " id varchar(64) not null COMMENT '编号',\n" + |
| | | " type_cd varchar(64) not null COMMENT '类型',\n" + |
| | | " ip varchar(64) not null COMMENT 'IP'\n" + |
| | | ");"; |
| | | public static void main(String[] args) { |
| | | String templateName = "mydockerfile"; //业务名称 |
| | | String templateCode = "businessDockerfile"; //表名大写 |
| | | String templateName = "黑白名单"; //业务名称 |
| | | String templateCode = "wafIpBlackWhite"; //表名大写 |
| | | String templateKey = "id"; //表主键 |
| | | String templateKeyName = "编号";//主键说明 |
| | | String searchCode = "id"; //分片字段 |