csv

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KaminoCsvLoader

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

KaminoCsvLoader specifc state for database Saver provider.

func NewLoader

NewLoader open the encoding process on provider file, read the header from the first line and return a Loader compatible object.

func (*KaminoCsvLoader) Close

func (cl *KaminoCsvLoader) Close(log *logrus.Entry) error

Close closes the datasource.

func (*KaminoCsvLoader) Load

func (cl *KaminoCsvLoader) Load(log *logrus.Entry) (types.Record, error)

Load reads the next record and return it.

func (*KaminoCsvLoader) Name

func (cl *KaminoCsvLoader) Name() string

Name give the name of the destination.

func (*KaminoCsvLoader) Next

func (cl *KaminoCsvLoader) Next() bool

Next moves to next record and return false if there is no more records.

type KaminoCsvSaver

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

KaminoCsvSaver specifc state for database Saver provider.

func NewSaver

NewSaver open the encoding process on provider file and return a Saver compatible object.

func (*KaminoCsvSaver) Close

func (cs *KaminoCsvSaver) Close(log *logrus.Entry) error

Close closes the destination.

func (*KaminoCsvSaver) Name

func (cs *KaminoCsvSaver) Name() string

Name give the name of the destination.

func (*KaminoCsvSaver) Reset

func (cs *KaminoCsvSaver) Reset(log *logrus.Entry) error

Reset reinitialize the destination (if possible).

func (*KaminoCsvSaver) Save

func (cs *KaminoCsvSaver) Save(log *logrus.Entry, record types.Record) error

Save writes the record to the destination.

Jump to

Keyboard shortcuts

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