csvparam

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadParam

type ReadParam func(*ReadParams)

func WithAllVarchar

func WithAllVarchar(allVarchar bool) ReadParam

func WithAllowQuotedNulls

func WithAllowQuotedNulls(allowQuotedNulls bool) ReadParam

func WithAutoDetect

func WithAutoDetect(autodetect bool) ReadParam

func WithAutoTypeCandidates

func WithAutoTypeCandidates(autoTypeCandidates []string) ReadParam

func WithColumns

func WithColumns(columns param.Columns) ReadParam

func WithCompression

func WithCompression(compression param.Compression) ReadParam

func WithDateformat

func WithDateformat(dateformat string) ReadParam

func WithDecimalSeparator

func WithDecimalSeparator(decimalSeparator string) ReadParam

func WithDelim

func WithDelim(delim string) ReadParam

func WithDescribe added in v1.0.2

func WithDescribe(describe bool) ReadParam

func WithEscape

func WithEscape(escape string) ReadParam

func WithFilename

func WithFilename(filename bool) ReadParam

func WithForceNotNull

func WithForceNotNull(forceNotNull []string) ReadParam

func WithHeader

func WithHeader(header bool) ReadParam

func WithHivePartitioning

func WithHivePartitioning(hivePartitioning bool) ReadParam

func WithIgnoreErrors

func WithIgnoreErrors(ignoreErrors bool) ReadParam

func WithMaxLineSize

func WithMaxLineSize(maxLineSize int64) ReadParam

func WithNames

func WithNames(names []string) ReadParam

func WithNewLine

func WithNewLine(newLine string) ReadParam

func WithNormalizeNames

func WithNormalizeNames(normalizeNames bool) ReadParam

func WithNullPadding

func WithNullPadding(nullPadding bool) ReadParam

func WithNullStrings

func WithNullStrings(nullStr []string) ReadParam

func WithParallel

func WithParallel(parallel bool) ReadParam

func WithQuote

func WithQuote(quote string) ReadParam

func WithSampleSize

func WithSampleSize(sampleSize int64) ReadParam

func WithSkip

func WithSkip(skip int64) ReadParam

func WithTimestampFormat

func WithTimestampFormat(timestampformat string) ReadParam

func WithTypes

func WithTypes(types param.Columns) ReadParam

func WithUnionByName

func WithUnionByName(unionByName bool) ReadParam

type ReadParams

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

Parameters for reading a CSV file

func (*ReadParams) GetDescribe added in v1.0.2

func (p *ReadParams) GetDescribe() bool

func (*ReadParams) GetSampleSize added in v1.0.2

func (p *ReadParams) GetSampleSize() int64

func (*ReadParams) Params

func (p *ReadParams) Params() string

Returns formatted parameters for reading CSV file

Jump to

Keyboard shortcuts

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