package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Oct 12, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
csv
Usage
source:
name: csv
config:
path: ./path-to-a-file-or-a-directory
Key |
Value |
Example |
Description |
|
path |
string |
./folder/filename.csv |
Path to a file or a directory |
required |
Notes
Passing directory in path
will collect and extract metadata from all .csv
files directly inside the directory path.
Outputs
Field |
Sample Value |
resource.urn |
filename.csv |
resource.name |
filename.csv |
resource.service |
csv |
schema.columns |
[]Column |
Column
Field |
Sample Value |
Description |
name |
order_id |
csv header e.g. first row |
Contributing
Refer to the contribution guidelines for information on contributing to this module.
Documentation
¶
type Config struct {
Path string `mapstructure:"path" validate:"required"`
}
Config holds the path configuration for the csv extractor
type Extractor struct {
}
Extractor manages the extraction of data from the extractor
New returns a pointer to an initialized Extractor Object
Extract checks if the extractor is configured and
returns the extracted data
Source Files
¶
Click to show internal directories.
Click to hide internal directories.