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

Function CSV

backend/component/export/csv.go:16–18  ·  view source on GitHub ↗

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

(result *v1pb.QueryResult)

Source from the content-addressed store, hash-verified

14
15// CSV exports query results as CSV format (legacy wrapper).
16func CSV(result *v1pb.QueryResult) ([]byte, error) {
17 return exportToBytes(result, CSVToWriter)
18}
19
20// CSVToWriter streams query results as CSV directly to the writer.
21// This minimizes memory usage by avoiding intermediate buffering.

Callers 1

ExportAuditLogsMethod · 0.92

Calls 1

exportToBytesFunction · 0.85

Tested by

no test coverage detected