https://github.com/adamtyn/at-migrator-tool
快速投入使用的Golang数据迁移工具
https://github.com/adamtyn/at-migrator-tool
go golang-tools mysql postgresql redis
Last synced: 3 months ago
JSON representation
快速投入使用的Golang数据迁移工具
- Host: GitHub
- URL: https://github.com/adamtyn/at-migrator-tool
- Owner: AdamTyn
- License: mit
- Created: 2022-06-30T09:42:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-28T09:54:45.000Z (almost 4 years ago)
- Last Synced: 2025-01-31T13:43:43.365Z (over 1 year ago)
- Topics: go, golang-tools, mysql, postgresql, redis
- Language: Go
- Homepage:
- Size: 139 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## at-migrator-tool
1. 文件结构梳理
```txt
main.go # 程序入口文件
doc/... # 存放子文档
internal/collector/... # 任务进程会调用的采集器
internal/conf/... # 解析配置的proto文件
internal/contract/... # 契约(interface)
internal/entity/... # 数据库实体
internal/pkg/... # 其他
internal/process/... # 加载到app容器的任务进程
internal/application.go # app容器
config.json # 配置文件
config.json.example # 配置文件模板
Makefile # 构建指令
......
```
2. 构建指令详解
- 首次生成 *config.json* 配置文件
```bash
make init
```
- 编译 *internal/conf/conf.proto* 文件
```bash
make config
```
- 只运行不编译
```bash
make run
```
- 编译打包
```bash
make build
```
3. 流程图

4. 子文档
- [config](docs/config.md)
- [deliver-uncheck-migrator](docs/deliver_uncheck_migrator.md)
- [operate-record-migrator](docs/operate_record_migrator.md)