Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonots/embulk-parser-none
Embulk parser plugin not to parse at all
https://github.com/sonots/embulk-parser-none
Last synced: 3 months ago
JSON representation
Embulk parser plugin not to parse at all
- Host: GitHub
- URL: https://github.com/sonots/embulk-parser-none
- Owner: sonots
- License: mit
- Created: 2015-10-27T01:02:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-07T15:52:21.000Z (over 3 years ago)
- Last Synced: 2024-04-26T13:40:21.308Z (9 months ago)
- Language: Java
- Homepage:
- Size: 55.7 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# None parser plugin for Embulk
Embulk parser plugin not to parse at all
## Install
```
$ embulk gem install embulk-parser-none
```## Overview
* **Plugin type**: parser
* **Guess supported**: no## Configuration
- **column_name**: A column name which this plugin outputs (string, default: "payload")
## Example
```yaml
in:
type: file
path_prefix: example.txt
parser:
type: none
column_name: payload
```Assume the input file (example.txt) is as following:
```
foo bar baz
foo bar baz
```then this plugin treats as:
```
+----------------+
| payload:string |
+----------------+
| foo bar baz |
| foo bar baz |
+----------------+
```To recover a file, you may use [embulk-formatter-single_value](https://github.com/sonots/embulk-formatter-single_value) as:
```
out:
type: file
path_prefix: example.txt
sequence_format: ""
file_ext: .out
formatter:
type: single_value
```or csv formatter as:
```
out:
type: file
path_prefix: example.txt
sequence_format: ""
file_ext: .out
formatter:
type: csv
delimiter: 0
quote_policy: NONE
header_line: false
```## ChangeLOG
[CHANGELOG.md](CHANGELOG.md)
## Development
Run example:
```
$ embulk gem install embulk-formatter-single_value
$ ./gradlew classpath
$ embulk run -I lib example.yml
```Run test:
```
$ ./gradlew test
```Release gem:
```
$ ./gradlew gemPush
```