# devops-sample **Repository Path**: gaochuanaaa/devops-sample ## Basic Information - **Project Name**: devops-sample - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-21 - **Last Updated**: 2022-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Repo Introduction 1. 启动服务 MergeDemoApplication 2. 测试请求merging-test.http ```http request ### 将1000001 所在1分库的数据合并到 1000007所在2分库上 POST http://localhost:8081/user/merge Content-Type: application/json { "sourceIdentificationId":"1000001", "targetIdentificationId":"1000007" } ``` ```http request ###撤销某次合并 POST http://localhost:8081/user/merged/revert?xid=5e8caceb9cd74ef08e9ba36cc58e7128 ``` ## 数据库脚本语句 /sql/abacus 主库创建表 /sql/merge_log 合并记录库,与分库所在一个位置,一个分片库一个merge_log 测试数据库(不同的分片上都有这些库) /sql/phr(模拟phr的schema) /sql/phr2(这个可以看成其他schema,比如person的schema)