composite

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package composite provides a file handler that can process multiple files of different formats

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompositeHandler

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

CompositeHandler handles multiple files of different formats

func NewCompositeHandler

func NewCompositeHandler(
	files []string,
	delimiter rune,
	bar *progressbar.ProgressBar,
	storage storage.Storage,
	limitLines int,
	collection string,
) (*CompositeHandler, error)

NewCompositeHandler creates a new composite handler for files with mixed formats

func NewCompositeHandlerWithAliases

func NewCompositeHandlerWithAliases(
	files []string,
	delimiter rune,
	bar *progressbar.ProgressBar,
	storage storage.Storage,
	limitLines int,
	collection string,
	aliases map[string]string,
) (*CompositeHandler, error)

NewCompositeHandlerWithAliases creates a new composite handler for files with mixed formats and table aliases

func (*CompositeHandler) Close

func (h *CompositeHandler) Close() error

Close closes all handlers

func (*CompositeHandler) Import

func (h *CompositeHandler) Import() error

Import imports data from all handlers

func (*CompositeHandler) Lines

func (h *CompositeHandler) Lines() int

Lines returns the total number of lines imported across all handlers

Jump to

Keyboard shortcuts

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