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

Method Validate

plugins/destination/test/client/spec.go:70–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (s *Spec) Validate() error {
71 if s.BatchWriter && s.StreamBatchWriter {
72 return errors.New("batch_writer and stream_batch_writer cannot be true at the same time")
73 }
74 if s.BatchWriter && s.MixedBatchWriter {
75 return errors.New("batch_writer and mixed_batch_writer cannot be true at the same time")
76 }
77 if s.StreamBatchWriter && s.MixedBatchWriter {
78 return errors.New("stream_batch_writer and mixed_batch_writer cannot be true at the same time")
79 }
80 return nil
81}
82
83func ptr[A any](a A) *A {
84 return &a

Callers 1

NewFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected