Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 1.53 KB

examples.md

File metadata and controls

59 lines (50 loc) · 1.53 KB

Structure of the configuration file

csv:
    extractor:
        file_path:  # Path to the source file
        
        delimiter:  # Optionnal. Character used by the file to delimit columns.
                    # Default value: ,
        
        enclosure:  # Optionnal. Character used to enclose values.
                    # Default value: "
        
        escape:     # Optionnal. Character used to escape special characters (quotes, slashes).
                    # Default value: \\
    loader:
        file_path:  # Path to the destination file

        delimiter:  # Optionnal. Character used by the file to delimit columns.
                    # Default value: ,

        enclosure:  # Optionnal. Character used to enclose values.
                    # Default value: "

        escape:     # Optionnal. Character used to escape special characters (quotes, slashes).
                    # Default value: \\
    logger:
        type:       # Possible values: stderr, null

Reading from a CSV file

csv:
    extractor:
        file_path: path/of/my/input.csv
        delimiter: ';'
        enclosure: '"'
        escape: '\\'

Writing to a CSV file

csv:
    loader:
        file_path: path/to/my/output.csv
        delimiter: ';'
        enclosure: '"'
        escape: '\\'

Outputing logs

logger: writes logs and errors to your system's stderr. Other value available: null

csv:
    logger:
        type: stderr