MCPcopy Create free account
hub / github.com/bytebase/bytebase / JSON

Function JSON

backend/component/export/json.go:14–16  ·  view source on GitHub ↗

JSON exports query results as JSON format (legacy wrapper).

(result *v1pb.QueryResult)

Source from the content-addressed store, hash-verified

12
13// JSON exports query results as JSON format (legacy wrapper).
14func JSON(result *v1pb.QueryResult) ([]byte, error) {
15 return exportToBytes(result, JSONToWriter)
16}
17
18// JSONToWriter streams query results as pretty-printed JSON directly to the writer.
19func JSONToWriter(w io.Writer, result *v1pb.QueryResult) error {

Callers 2

ExportAuditLogsMethod · 0.92
TestExportJSONFunction · 0.85

Calls 1

exportToBytesFunction · 0.85

Tested by 1

TestExportJSONFunction · 0.68