formats

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueToJson added in v0.7.0

func ValueToJson(arena *fastjson.Arena, t octosql.Type, value octosql.Value) *fastjson.Value

func WithoutQualifiers added in v0.9.1

func WithoutQualifiers(fields []physical.SchemaField) []physical.SchemaField

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