Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit c7196ac Dec 3, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/embulk/formatter added JSON column option Oct 5, 2015
.gitignore auto-generate templates Feb 26, 2015
Gemfile auto-generate templates Feb 26, 2015
LICENSE.txt auto-generate templates Feb 26, 2015
README.md Update README Nov 26, 2015
Rakefile set default task to build Feb 26, 2015
embulk-formatter-jsonl.gemspec bump version 0.1.4 Apr 16, 2015

README.md

Jsonl formatter plugin for Embulk

Format datum to jsonl, 1 json per 1 line

Overview

  • Plugin type: formatter
  • Load all or nothing: yes
  • Resume supported: no

Configuration

  • encoding: output encoding. must be one of "UTF-8", "UTF-16LE", "UTF-32BE", "UTF-32LE" or "UTF-32BE" (string default: 'UTF-8')
  • newline: newline character. (string default: 'LF')
    • CRLF: use \r(0x0d) and \n(0x0a) as newline character
    • LF: use \n(0x0a) as newline character
    • CR: use \r(0x0d) as newline character
    • NUL: use \0(0x00) instead of newline (for example, xargs -0 will be good friend with it)
    • NO: dump JSONs in a line
  • date_format: date format. See below example. (string default: nil)
    • "yyyy-MM-dd HH:mm:ss": 2015-04-26 17:23:25
    • "yyyy-MM-dd'T'HH:mm:ss.SSSZ": 2015-04-26T17:23:25.123+0900
    • For more information: SimpleDateFormat class document
  • timezone: timezone. "JST" (string default: nil), When you use this option, you also need to set date_format option too.
  • json_columns: json formatted column name. (array default:[])

Example

out:
  type: any output input plugin type
  formatter:
    type: jsonl
    encoding: UTF-8
    newline: NUL

Timezone example.

out:
  type: any output input plugin type
  formatter:
    type: jsonl
    timezone: "UTC"
    date_format: "yyyy-MM-dd'T'HH:mm:ss.SSSZ"

Build

$ rake
You can’t perform that action at this time.