mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-12 06:19:40 +08:00
- 新增差异分析/预览接口与前端预览抽屉(插入/更新/删除) - 支持按表勾选插入/更新/删除(删除默认不勾选) - 支持按主键选择行级同步;无主键/复合主键表跳过并提示 - 同步过程实时输出中文日志与进度条,便于定位失败步骤
14 lines
586 B
Go
14 lines
586 B
Go
package sync
|
||
|
||
// TableOptions controls which operations to apply per table, and optional row selection.
|
||
// 注意:如未指定 Selected*PKs,则表示“同步全部该类型差异数据”;如指定为空数组,则同样表示全部。
|
||
type TableOptions struct {
|
||
Insert bool `json:"insert,omitempty"`
|
||
Update bool `json:"update,omitempty"`
|
||
Delete bool `json:"delete,omitempty"`
|
||
|
||
SelectedInsertPKs []string `json:"selectedInsertPks,omitempty"`
|
||
SelectedUpdatePKs []string `json:"selectedUpdatePks,omitempty"`
|
||
SelectedDeletePKs []string `json:"selectedDeletePks,omitempty"`
|
||
}
|