MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / SetDefaults

Method SetDefaults

cli/internal/specs/v0/source.go:80–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func (s *Source) SetDefaults() {
81 s.Metadata.SetDefaults()
82 if s.Spec == nil {
83 s.Spec = make(map[string]any)
84 }
85 if s.SkipDependentTables == nil {
86 b := true
87 s.SkipDependentTables = &b
88 }
89}
90
91// UnmarshalSpec unmarshals the internal spec into the given interface
92func (s *Source) UnmarshalSpec(out any) error {

Callers 4

TestLoadSpecsFunction · 0.45
loadSpecsFromFileMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestLoadSpecsFunction · 0.36