feat: refactor configuration to include source and target database types

This commit is contained in:
2026-04-10 22:58:57 -05:00
parent a5b5a04feb
commit 1be7018ba3
4 changed files with 10 additions and 31 deletions

View File

@@ -46,12 +46,16 @@ type Job struct {
type MigrationConfig struct {
MaxParallelWorkers int `yaml:"max_parallel_workers"`
SourceDbType string `yaml:"source_db_type"`
TargetDbType string `yaml:"target_db_type"`
Defaults JobConfig `yaml:"defaults"`
Jobs []Job `yaml:"jobs"`
}
type rawConfig struct {
MaxParallelWorkers int `yaml:"max_parallel_workers"`
SourceDbType string `yaml:"source_db_type"`
TargetDbType string `yaml:"target_db_type"`
Defaults JobConfig `yaml:"defaults"`
Jobs []yaml.Node `yaml:"jobs"`
}