output

package
v0.5.612 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractTabularWriter

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

type BasicColumnOrderer

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

func (*BasicColumnOrderer) GetColumnOrder

func (bco *BasicColumnOrderer) GetColumnOrder() []string

type CSVWriter

type CSVWriter struct {
	AbstractTabularWriter
	// contains filtered or unexported fields
}

func (*CSVWriter) Write

func (csvw *CSVWriter) Write(res sqldata.ISQLResultStream) error

func (*CSVWriter) WriteError

func (csvw *CSVWriter) WriteError(err error, errorPresentation string) error

type IColumnOrderer

type IColumnOrderer interface {
	GetColumnOrder() []string
}

type IOutputWriter

type IOutputWriter interface {
	Write(sqldata.ISQLResultStream) error
	WriteError(error, string) error
}

func GetOutputWriter

func GetOutputWriter(
	writer io.Writer,
	errWriter io.Writer,
	outputCtx internaldto.OutputContext,
) (IOutputWriter, error)

type JSONWriter added in v0.5.375

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

func (*JSONWriter) Write added in v0.5.375

func (jw *JSONWriter) Write(res sqldata.ISQLResultStream) error

func (*JSONWriter) WriteError added in v0.5.375

func (jw *JSONWriter) WriteError(err error, errorPresentation string) error

type PrettyWriter

type PrettyWriter struct {
	AbstractTabularWriter
	// contains filtered or unexported fields
}

func (*PrettyWriter) Write

func (rw *PrettyWriter) Write(res sqldata.ISQLResultStream) error

func (*PrettyWriter) WriteError

func (rw *PrettyWriter) WriteError(err error, errorPresentation string) error

type RawWriter

type RawWriter struct {
	AbstractTabularWriter
	// contains filtered or unexported fields
}

func (*RawWriter) Write

func (rw *RawWriter) Write(res sqldata.ISQLResultStream) error

func (*RawWriter) WriteError

func (rw *RawWriter) WriteError(err error, errorPresentation string) error

type TableWriter

type TableWriter struct {
	AbstractTabularWriter
	// contains filtered or unexported fields
}

func (*TableWriter) Write

func (tw *TableWriter) Write(res sqldata.ISQLResultStream) error

func (*TableWriter) WriteError

func (tw *TableWriter) WriteError(err error, errorPresentation string) error

Jump to

Keyboard shortcuts

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