csvimport

package
v4.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePermissions

func ParsePermissions(raw string) (fs.FileMode, error)

ParsePermissions accepts numeric permission strings in decimal, octal or hex notation.

Types

type Options

type Options struct {
	InputPath  string
	OutputPath string

	Schema    string
	Interface string

	MaxRows int

	EncoderType encoders.Type
	Permissions fs.FileMode
}

Options controls CSV to goDB import behavior.

type Summary

type Summary struct {
	RowsRead     int
	RowsImported int
	RowsSkipped  int

	Interfaces    int
	BlocksWritten int
}

Summary reports aggregate import results.

func Import

func Import(ctx context.Context, opts Options) (Summary, error)

Import reads flow rows from CSV and writes them to a goDB directory.

Jump to

Keyboard shortcuts

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