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) 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
Click to show internal directories.
Click to hide internal directories.