exporter

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package exporter exposes stable result export helpers backed by tinySQL's internal exporter implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportCSV

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

ExportCSV writes ResultSet rows as CSV to w.

func ExportGOB

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

ExportGOB writes ResultSet rows and column order as a GOB payload.

func ExportJSON

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

ExportJSON writes ResultSet rows as a JSON array of objects.

func ExportSQL added in v0.14.0

func ExportSQL(w io.Writer, rs *tinysql.ResultSet, tableName string) error

ExportSQL writes ResultSet rows as INSERT statements for tableName.

func ExportTSV

func ExportTSV(w io.Writer, rs *tinysql.ResultSet, opts Options) error

ExportTSV writes ResultSet rows as tab-separated values to w.

func ExportXML

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

ExportXML writes ResultSet rows as simple XML.

Types

type Options

type Options = ie.Options

Options controls exporter behavior.

Jump to

Keyboard shortcuts

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