refactor: dbm

This commit is contained in:
meilin.huang
2024-12-08 13:04:23 +08:00
parent ebc89e056f
commit e56788af3e
152 changed files with 4273 additions and 3715 deletions

View File

@@ -23,10 +23,16 @@ type DumpDb struct {
LogId uint64
Writer io.WriteCloser
Log func(msg string)
TargetDbType dbi.DbType
Log func(msg string)
Progress func(currentTable string, stmtType dbi.StmtType, stmtCount int, currentStmtTypeEnd bool) // dump进度
}
func DefaultDumpLog(msg string) {
}
func DefaultDumpProgress(currentTable string, stmtType dbi.StmtType, stmtCount int, currentStmtTypeEnd bool) {
}