Documentation
¶
Overview ¶
Package exporter exposes stable result export helpers backed by tinySQL's internal exporter implementation.
Index ¶
- func ExportCSV(w io.Writer, rs *tinysql.ResultSet, opts Options) error
- func ExportGOB(w io.Writer, rs *tinysql.ResultSet) error
- func ExportJSON(w io.Writer, rs *tinysql.ResultSet, opts Options) error
- func ExportNDJSON(w io.Writer, rs *tinysql.ResultSet, opts Options) error
- func ExportSQL(w io.Writer, rs *tinysql.ResultSet, tableName string) error
- func ExportTSV(w io.Writer, rs *tinysql.ResultSet, opts Options) error
- func ExportTableManifest(w io.Writer, db *tinysql.DB, tenant, tableName string) error
- func ExportXML(w io.Writer, rs *tinysql.ResultSet) error
- type ManifestColumn
- type Options
- type TableManifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportJSON ¶
ExportJSON writes ResultSet rows as a JSON array of objects.
func ExportNDJSON ¶ added in v0.19.0
ExportNDJSON streams one JSON object per ResultSet row to w.
func ExportSQL ¶ added in v0.14.0
ExportSQL writes ResultSet rows as INSERT statements for tableName.
func ExportTableManifest ¶ added in v0.19.0
ExportTableManifest writes a versioned table schema and data fingerprint.
Types ¶
type ManifestColumn ¶ added in v0.19.0
type ManifestColumn = ie.ManifestColumn
type TableManifest ¶ added in v0.19.0
type TableManifest = ie.TableManifest
Click to show internal directories.
Click to hide internal directories.