v2

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataFormat = "CSV"
	Delimiter  = `','`
)

Variables

This section is empty.

Functions

func LoadCSV

func LoadCSV(ctx context.Context, r io.Reader, table string, db *dbv2.DB) (int64, error)

Types

type CSVLoader

type CSVLoader struct {
	MaxConcurrentRuns int
	// contains filtered or unexported fields
}

func NewCSVLoader

func NewCSVLoader(files []string, db *dbv2.DB, look int, t string, maxRuns int) *CSVLoader

func (*CSVLoader) Run

func (c *CSVLoader) Run(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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