MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / CLISourceSpecToPbSpec

Function CLISourceSpecToPbSpec

cli/cmd/specs.go:36–49  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
36func 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
51func CLIWriteModeToPbWriteMode(writeMode specs.WriteMode) pbSpecs.WriteMode {
52 switch writeMode {

Callers 4

syncConnectionV2Function · 0.85
migrateConnectionV1Function · 0.85
syncConnectionV1Function · 0.85
migrateConnectionV2Function · 0.85

Calls 1

CLIRegistryToPbRegistryFunction · 0.85

Tested by

no test coverage detected