json

package
v0.0.0-...-b5280ba Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts *Options) (format.Select, error)

New sets up a new, the first Json is read when this is run. If there is a problem with reading the first Json, the error is returned. Otherwise, the returned reader can be reliably consumed with jsonRead() until jsonRead() returns nil.

Types

type Options

type Options struct {

	// Name of the table that is used for querying
	Name string

	// ReadFrom is where the data will be read from.
	ReadFrom io.Reader

	// If true then we need to add gzip or bzip reader.
	// to extract the csv.
	Compressed string

	// SQL expression meant to be evaluated.
	Expression string

	// Input record delimiter.
	RecordDelimiter string

	// Output CSV will be delimited by.
	OutputFieldDelimiter string

	// Output record delimiter.
	OutputRecordDelimiter string

	// Size of incoming object
	StreamSize int64

	// True if DocumentType is DOCUMENTS
	DocumentType bool

	// Progress enabled, enable/disable progress messages.
	Progress bool

	// Output format type, supported values are CSV and JSON
	OutputType format.Type
}

Options options are passed to the underlying encoding/json reader.

Jump to

Keyboard shortcuts

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