MCPcopy
hub / github.com/daptin/daptin / StreamingExportWriter

Interface StreamingExportWriter

server/resource/paginated_dbmethods.go:90–105  ·  view source on GitHub ↗

StreamingExportWriter interface for different export format writers

Source from the content-addressed store, hash-verified

88
89// StreamingExportWriter interface for different export format writers
90type StreamingExportWriter interface {
91 // Initialize prepares the writer for streaming
92 Initialize(tableNames []string, includeHeaders bool, selectedColumns map[string][]string) error
93
94 // WriteTable writes a table name header if needed
95 WriteTable(tableName string) error
96
97 // WriteHeaders writes column headers for a table
98 WriteHeaders(tableName string, columns []string) error
99
100 // WriteRows writes a batch of rows
101 WriteRows(tableName string, rows []map[string]interface{}) error
102
103 // Finalize completes the export and returns the final content
104 Finalize() ([]byte, error)
105}

Callers 4

DoActionMethod · 0.65
DoActionMethod · 0.65
DoActionMethod · 0.65
DoActionMethod · 0.65

Implementers 5

StreamingJSONWriterserver/actions/streaming_export_writer
StreamingHTMLWriterserver/actions/streaming_export_writer
StreamingCSVWriterserver/actions/streaming_export_writer
StreamingXLSXWriterserver/actions/streaming_export_writer
StreamingPDFWriterserver/actions/streaming_export_writer

Calls

no outgoing calls

Tested by

no test coverage detected