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

FuncType Writer

backend/component/export/export.go:19–19  ·  view source on GitHub ↗

Writer is a function type that writes query results to a writer.

func(w io.Writer, result *v1pb.QueryResult) error

Source from the content-addressed store, hash-verified

17
18// Writer is a function type that writes query results to a writer.
19type Writer func(w io.Writer, result *v1pb.QueryResult) error
20
21// exportToBytes is a helper function that exports to a byte slice using a writer function.
22func exportToBytes(result *v1pb.QueryResult, writerFunc Writer) ([]byte, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected