Documentation ¶
Overview ¶
Package writer provides functions for formatting query results.
TODO(ivanpi): Export as VDL formatter library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormattingWriter ¶
type FormattingWriter interface {
Write(columnNames []string, rs syncbase.ResultStream) error
}
func NewCSVWriter ¶
func NewCSVWriter(w io.Writer, delimiter string) FormattingWriter
func NewJSONWriter ¶
func NewJSONWriter(w io.Writer) FormattingWriter
func NewTableWriter ¶
func NewTableWriter(w io.Writer) FormattingWriter
Click to show internal directories.
Click to hide internal directories.