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

Function XLSXToWriter

backend/component/export/xlsx.go:60–67  ·  view source on GitHub ↗

XLSXToWriter exports XLSX format to a writer. Note: XLSX still materializes in memory due to excelize library limitations.

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

Source from the content-addressed store, hash-verified

58// XLSXToWriter exports XLSX format to a writer.
59// Note: XLSX still materializes in memory due to excelize library limitations.
60func XLSXToWriter(w io.Writer, result *v1pb.QueryResult) error {
61 content, err := XLSX(result)
62 if err != nil {
63 return err
64 }
65 _, err = w.Write(content)
66 return err
67}
68
69// ExcelColumnName converts a column index to Excel column name (A, B, ..., Z, AA, AB, ..., ZZZ).
70func ExcelColumnName(index int) (string, error) {

Callers 2

formatExportToZipMethod · 0.92
formatExportToZipFunction · 0.92

Calls 1

XLSXFunction · 0.85

Tested by

no test coverage detected