This converts CLI configuration to a source spec prior to V3 version when our spec wasn't decoupled from the over the wire protocol
(spec specs.Source)
| 34 | // This converts CLI configuration to a source spec prior to V3 version |
| 35 | // when our spec wasn't decoupled from the over the wire protocol |
| 36 | func CLISourceSpecToPbSpec(spec specs.Source) pbSpecs.Source { |
| 37 | return pbSpecs.Source{ |
| 38 | Name: spec.Name, |
| 39 | Version: spec.Version, |
| 40 | Path: spec.Path, |
| 41 | Registry: CLIRegistryToPbRegistry(spec.Registry), |
| 42 | Tables: spec.Tables, |
| 43 | SkipTables: spec.SkipTables, |
| 44 | SkipDependentTables: *spec.SkipDependentTables, |
| 45 | Destinations: spec.Destinations, |
| 46 | Spec: spec.Spec, |
| 47 | DeterministicCQID: spec.DeterministicCQID, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func CLIWriteModeToPbWriteMode(writeMode specs.WriteMode) pbSpecs.WriteMode { |
| 52 | switch writeMode { |
no test coverage detected