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

Method batchingEnabled

plugins/destination/file/client/spec/spec.go:141–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139}
140
141func (s *Spec) batchingEnabled() bool {
142 if s.NoRotate {
143 // if that's set we don't allow batching
144 return false
145 }
146
147 return (s.BatchSize == nil || *s.BatchSize > 0) ||
148 (s.BatchSizeBytes == nil || *s.BatchSizeBytes > 0) ||
149 (s.BatchTimeout == nil || s.BatchTimeout.Duration() > 0)
150}
151
152func ptr[A any](a A) *A {
153 return &a

Callers 1

ValidateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected