goat: github.com/balamurugana/goat/csv Index | Files

package csv

import "github.com/balamurugana/goat/csv"

Index

Package Files

args.go errors.go reader.go

type Reader Uses

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

Reader - CSV record reader for S3Select.

func NewReader Uses

func NewReader(readCloser io.ReadCloser, args *ReaderArgs, alias string) (*Reader, error)

NewReader - creates new CSV reader using readCloser.

func (*Reader) Close Uses

func (r *Reader) Close() error

Close - closes underlaying reader.

func (*Reader) Read Uses

func (r *Reader) Read() (*sql.Record, error)

Read - reads single record.

type ReaderArgs Uses

type ReaderArgs struct {
    FileHeaderInfo             string `xml:"FileHeaderInfo"`
    RecordDelimiter            string `xml:"RecordDelimiter"`
    FieldDelimiter             string `xml:"FieldDelimiter"`
    QuoteCharacter             string `xml:"QuoteCharacter"`
    QuoteEscapeCharacter       string `xml:"QuoteEscapeCharacter"`
    CommentCharacter           string `xml:"Comments"`
    AllowQuotedRecordDelimiter bool   `xml:"AllowQuotedRecordDelimiter"`
    // contains filtered or unexported fields
}

ReaderArgs - represents elements inside <InputSerialization><CSV> in request XML.

func (*ReaderArgs) IsEmpty Uses

func (args *ReaderArgs) IsEmpty() bool

IsEmpty - returns whether reader args is empty or not.

func (*ReaderArgs) UnmarshalXML Uses

func (args *ReaderArgs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML - decodes XML data.

type WriterArgs Uses

type WriterArgs struct {
    QuoteFields          string `xml:"QuoteFields"`
    RecordDelimiter      string `xml:"RecordDelimiter"`
    FieldDelimiter       string `xml:"FieldDelimiter"`
    QuoteCharacter       string `xml:"QuoteCharacter"`
    QuoteEscapeCharacter string `xml:"QuoteEscapeCharacter"`
    // contains filtered or unexported fields
}

WriterArgs - represents elements inside <OutputSerialization><CSV/> in request XML.

func (*WriterArgs) IsEmpty Uses

func (args *WriterArgs) IsEmpty() bool

IsEmpty - returns whether writer args is empty or not.

func (*WriterArgs) UnmarshalXML Uses

func (args *WriterArgs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML - decodes XML data.

Package csv imports 7 packages (graph) and is imported by 1 packages. Updated 2019-02-02. Refresh now. Tools for package owners.