CSV Parser with schema config file plugin for Embulk
Parses csv files with schema file read by other file input plugins.
Overview
- Plugin type: parser
- Guess supported: no
Usage
Install plugin
$ embulk gem install embulk-parser-csv_with_schema_file
Configuration
Example
in:
type: file
path_prefix: /tmp/csv/
parser:
type: csv_with_schema_file
schema_path: /tmp/csv_schema.json
default_timestamp_format: '%Y-%m-%d %H:%M:%S %z'
out:
type: stdout
[
{
"index": 0,
"name": "Name",
"type": "string"
},
{
"index": 1,
"name": "Cnt",
"type": "long"
},
{
"index": 2,
"name": "RegDate",
"type": "timestamp"
}
]
Build
$ ./gradlew gem # -t to watch change of files and rebuild continuously