exporter

package
v0.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportCSV

func ExportCSV(w io.Writer, rs *engine.ResultSet, opts Options) error

ExportCSV writes ResultSet rows as CSV to w. Column order is preserved.

func ExportGOB

func ExportGOB(w io.Writer, rs *engine.ResultSet) error

ExportGOB encodes the ResultSet.Rows using gob to w.

func ExportJSON

func ExportJSON(w io.Writer, rs *engine.ResultSet, opts Options) error

ExportJSON writes ResultSet rows as a JSON array of objects.

func ExportXML

func ExportXML(w io.Writer, rs *engine.ResultSet) error

ExportXML writes ResultSet as simple XML: <rows><row><col>value</col>...</row>...</rows>

Types

type Options

type Options struct {
	PrettyJSON   bool
	CSVNoHeader  bool
	CSVDelimiter rune
}

Options controls exporter behavior.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL