Documentation
¶
Overview ¶
Package output formats query results as JSONL, CSV, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrowToGo ¶
func ArrowToGo(batch arrow.RecordBatch) []map[string]any
ArrowToGo converts an Arrow record batch to a slice of maps.
func WriteResult ¶
WriteResult writes query results to w in the specified format.
Types ¶
type ResultFormatter ¶
type ResultFormatter interface {
Header(names []string) error
Rows(batch arrow.RecordBatch) error
}
ResultFormatter writes query results in a specific format.
func NewFormatter ¶
func NewFormatter(w io.Writer, format string) (ResultFormatter, error)
NewFormatter creates a ResultFormatter for the specified format.
Click to show internal directories.
Click to hide internal directories.