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

Function readAll

plugins/destination/s3/client/client_test.go:139–152  ·  view source on GitHub ↗
(ctx context.Context, client plugin.Client, table *schema.Table)

Source from the content-addressed store, hash-verified

137}
138
139func readAll(ctx context.Context, client plugin.Client, table *schema.Table) ([]arrow.RecordBatch, error) {
140 var err error
141 ch := make(chan arrow.RecordBatch)
142 go func() {
143 defer close(ch)
144 err = client.Read(ctx, table, ch)
145 }()
146 // nolint:prealloc
147 var records []arrow.RecordBatch
148 for record := range ch {
149 records = append(records, record)
150 }
151 return records, err
152}

Callers 1

testPluginCustomFunction · 0.70

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected