Documentation
¶
Index ¶
- Constants
- Variables
- func DumpCSV(ctx context.Context, w io.Writer, rows *sql.Rows, columns []Column, ...) error
- func DumpSheet(ctx context.Context, sheet spreadsheet.Sheet, rows *sql.Rows, columns []Column) error
- func ReadCSV(ctx context.Context, fn func(context.Context, Row) error, r io.Reader, ...) error
- func ReadXLSFile(ctx context.Context, fn func(context.Context, string, Row) error, ...) error
- func ReadXLSXFile(ctx context.Context, fn func(context.Context, string, Row) error, ...) error
- func Wrap(ctx context.Context) (context.Context, context.CancelFunc)
- type Column
- type Config
- func (cfg *Config) Close() error
- func (cfg *Config) Columns() ([]int, error)
- func (cfg *Config) Encoding() (encoding.Encoding, error)
- func (cfg *Config) Open(fileName string) error
- func (cfg *Config) ReadRows(ctx context.Context, fn func(context.Context, string, Row) error) (err error)
- func (cfg *Config) ReadSheets(ctx context.Context) (map[int]string, error)
- func (cfg *Config) Rewind() error
- func (cfg *Config) Type() (FileType, error)
- type FType
- type FileType
- type NamedEncoding
- type Row
- type Stringer
- type StringsValue
- type ValBytes
- type ValFloat
- type ValInt
- type ValNumber
- type ValString
- type ValTime
Constants ¶
Variables ¶
View Source
var ( DateEnd string DateFormat = "2006-01-02" )
View Source
var DefaultEncoding = NamedEncoding{Encoding: encoding.Replacement, Name: "utf-8"}
View Source
var ErrUnknownSheet = errors.New("unknown sheet")
Functions ¶
func ReadXLSFile ¶
func ReadXLSXFile ¶
Types ¶
type Column ¶ added in v0.2.0
func GetColumns ¶ added in v0.2.0
type Config ¶
type Config struct { Delim string Charset string ColumnsString string Sheet, Skip int // contains filtered or unexported fields }
func (*Config) ReadSheets ¶ added in v0.0.5
type NamedEncoding ¶ added in v0.0.4
func EncFromName ¶ added in v0.0.4
func EncFromName(e string) (NamedEncoding, error)
type StringsValue ¶ added in v0.0.4
type StringsValue struct {
Strings []string
}
func FlagStrings ¶ added in v0.0.4
func FlagStrings() *StringsValue
func (*StringsValue) Set ¶ added in v0.0.4
func (ss *StringsValue) Set(s string) error
func (StringsValue) String ¶ added in v0.0.4
func (ss StringsValue) String() string
type ValBytes ¶ added in v0.4.1
type ValBytes struct { Sep string // contains filtered or unexported fields }
type ValNumber ¶ added in v0.4.6
type ValNumber struct { Sep string // contains filtered or unexported fields }
type ValString ¶ added in v0.2.0
type ValString struct { Sep string // contains filtered or unexported fields }
Directories
¶
Path | Synopsis |
---|---|
Package main in csvdump represents a cursor->csv dumper
|
Package main in csvdump represents a cursor->csv dumper |
Package main in paraexp represents a parallel query-to-JSON dumper
|
Package main in paraexp represents a parallel query-to-JSON dumper |
Package main in tablecopy is a table copier between databases.
|
Package main in tablecopy is a table copier between databases. |
Click to show internal directories.
Click to hide internal directories.