export

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCSV

func FormatCSV(headers []string, rows [][]string) (string, error)

FormatCSV formats query results as CSV.

func FormatJSON

func FormatJSON(headers []string, rows [][]string) (string, error)

FormatJSON formats query results as a JSON array of objects. Duplicate column names get a numeric suffix (e.g. "id", "id_2").

func FormatMarkdown

func FormatMarkdown(headers []string, rows [][]string) string

FormatMarkdown formats query results as a GitHub Flavored Markdown table.

func SaveCSVFile

func SaveCSVFile(headers []string, rows [][]string) (string, error)

SaveCSVFile writes query results to a CSV file with a timestamped name in the current directory. Returns the filename.

Types

This section is empty.

Jump to

Keyboard shortcuts

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