https://github.com/toyama0919/embulk-formatter-sprintf
Formats Sprintf(Java String#format) files for other file output plugins.
https://github.com/toyama0919/embulk-formatter-sprintf
embulk
Last synced: 3 months ago
JSON representation
Formats Sprintf(Java String#format) files for other file output plugins.
- Host: GitHub
- URL: https://github.com/toyama0919/embulk-formatter-sprintf
- Owner: toyama0919
- License: mit
- Created: 2016-12-01T05:58:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T14:44:12.000Z (over 6 years ago)
- Last Synced: 2024-04-25T03:01:33.985Z (about 1 year ago)
- Topics: embulk
- Language: Java
- Size: 54.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Sprintf formatter plugin for Embulk
Formats Sprintf(Java String#format) files for other file output plugins.
## Overview
* **Plugin type**: formatter
## Configuration
- **format**: format (string, required)
- **column_keys**: column_keys (array, required)
- **null_string**: null_string (string, default: '')## Example
```yaml
out:
type: any output input plugin type
formatter:
type: sprintf
null_string: null
format: " - { id: %s, url: '%s' }\n"
column_keys:
- id
- url
```## Build
```
$ ./gradlew gem # -t to watch change of files and rebuild continuously
```