Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecOption ¶
type ExecOption interface { ImporterExecOption ExporterExecOption }
func MaxParamsPerSQL ¶
func MaxParamsPerSQL(v int) ExecOption
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
func NewExporter(resource interface{}) *Exporter
func (*Exporter) Associations ¶
type ExporterExecOption ¶
type ExporterExecOption interface {
// contains filtered or unexported methods
}
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func NewImporter ¶
func NewImporter(resource interface{}) *Importer
func (*Importer) Associations ¶
func (*Importer) Validators ¶
func (ip *Importer) Validators(vs ...func(metaValues MetaValues) error) *Importer
type ImporterExecOption ¶
type ImporterExecOption interface {
// contains filtered or unexported methods
}
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
func (*Meta) PrimaryKey ¶
func (*Meta) Setter ¶
func (m *Meta) Setter(f MetaSetter) *Meta
set values to special fields e.g. time.Time, struct, associated records ...
type MetaSetter ¶
type MetaSetter func(record interface{}, value string, metaValues MetaValues) error
type MetaValuer ¶
type MetaValues ¶
type Reader ¶
func NewCSVReader ¶
func NewCSVReader(rc io.ReadCloser) (Reader, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.