MCPcopy
hub / github.com/noahgorstein/jqp / processJSONLinesWithQuery

Function processJSONLinesWithQuery

tui/bubbles/jqplayground/commands.go:69–77  ·  view source on GitHub ↗
(ctx context.Context, results *strings.Builder, query *gojq.Query, data []byte)

Source from the content-addressed store, hash-verified

67}
68
69func 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
79func (b *Bubble) executeQueryOnInput(ctx context.Context) (string, error) {
80 var results strings.Builder

Callers

nothing calls this directly

Calls 2

processJSONWithQueryFunction · 0.85

Tested by

no test coverage detected