formats

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVFormatter

type CSVFormatter struct {
	// contains filtered or unexported fields
}

func NewCSVFormatter

func NewCSVFormatter(w io.Writer) *CSVFormatter

func (*CSVFormatter) Close

func (t *CSVFormatter) Close() error

func (*CSVFormatter) SetSchema

func (t *CSVFormatter) SetSchema(schema physical.Schema)

func (*CSVFormatter) Write

func (t *CSVFormatter) Write(values []octosql.Value) error

type JSONFormatter

type JSONFormatter struct {
	// contains filtered or unexported fields
}

func NewJSONFormatter

func NewJSONFormatter(w io.Writer) *JSONFormatter

func (*JSONFormatter) Close

func (t *JSONFormatter) Close() error

func (*JSONFormatter) SetSchema

func (t *JSONFormatter) SetSchema(schema physical.Schema)

func (*JSONFormatter) Write

func (t *JSONFormatter) Write(values []octosql.Value) error

type TableFormatter

type TableFormatter struct {
	// contains filtered or unexported fields
}

func NewTableFormatter

func NewTableFormatter(w io.Writer) *TableFormatter

func (*TableFormatter) Close

func (t *TableFormatter) Close() error

func (*TableFormatter) SetSchema

func (t *TableFormatter) SetSchema(schema physical.Schema)

func (*TableFormatter) Write

func (t *TableFormatter) Write(values []octosql.Value) error

Jump to

Keyboard shortcuts

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