feat: refactor configuration to include source and target database types
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user