importer

package
v0.0.0-...-68ec1c9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DebugPrint = true
)

Functions

func FromGzippedCSVFiles

func FromGzippedCSVFiles(a FromGzippedCSVFilesArgs)

Types

type AddFunc

type AddFunc = func(rec, headers []string) error

type Batcher

type Batcher interface {
	Add(rec, headers []string) error
	Flush() error
}

type FromGzippedCSVFilesArgs

type FromGzippedCSVFilesArgs struct {
	Dir              string  // Dir to look for files in
	PrefixFilter     string  // limit to filenames matching the filter
	MaxRecordsToRead int     // Max CSV records to read before exiting
	Batcher          Batcher // Use this batcher (optional)
	AddFunc          AddFunc // Call this add function for each record (optional)
}

Jump to

Keyboard shortcuts

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