(ctx context.Context, results *strings.Builder, query *gojq.Query, data []byte)
| 67 | } |
| 68 | |
| 69 | func processJSONLinesWithQuery(ctx context.Context, results *strings.Builder, query *gojq.Query, data []byte) error { |
| 70 | const maxBufferSize = 100 * 1024 * 1024 // 100MB max buffer size |
| 71 | |
| 72 | processLine := func(line []byte) error { |
| 73 | return processJSONWithQuery(ctx, results, query, line) |
| 74 | } |
| 75 | |
| 76 | return utils.ScanLinesWithDynamicBufferSize(data, maxBufferSize, processLine) |
| 77 | } |
| 78 | |
| 79 | func (b *Bubble) executeQueryOnInput(ctx context.Context) (string, error) { |
| 80 | var results strings.Builder |
nothing calls this directly
no test coverage detected