Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFormatSupported ¶
IsFormatSupported checks if a format is supported
Types ¶
type FileHandler ¶
type Format ¶
type Format string
Format represents a supported file format
const ( FormatCSV Format = "csv" FormatJSON Format = "json" FormatJSONL Format = "jsonl" FormatXML Format = "xml" FormatExcel Format = "excel" FormatParquet Format = "parquet" FormatYAML Format = "yaml" FormatAVRO Format = "avro" FormatORC Format = "orc" FormatPostgres Format = "postgres" FormatMySQL Format = "mysql" FormatDuckDB Format = "duckdb" FormatMongoDB Format = "mongodb" FormatSQLite Format = "sqlite" )
func DetectFormat ¶
DetectFormat detects the file format from file extension or URL scheme
func DetectFormatFromFiles ¶
DetectFormatFromFiles detects the format from a list of files Returns error if files have mixed formats
func SupportedFormats ¶
func SupportedFormats() []Format
SupportedFormats returns a list of supported file formats
type HandlerFactory ¶
type HandlerFactory struct {
// contains filtered or unexported fields
}
HandlerFactory creates file handlers based on format
func NewHandlerFactory ¶
func NewHandlerFactory(storage storage.Storage, bar *progressbar.ProgressBar, limitLines int, collection string, delimiter rune) *HandlerFactory
NewHandlerFactory creates a new handler factory
Click to show internal directories.
Click to hide internal directories.