Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.2 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.2 KB

Base58 filter plugin for Embulk

Build Status Coverage Status

Embulk filter plugin to convert hex to base58 and vice versa.

Overview

  • Plugin type: filter

Configuration

  • columns: Columns to encode/decode (array, required)
    • name: Name of input column (string, required)
    • encode: Whether to encode or decode the value. (boolean, default:true)
    • prefix: Adds a prefix when encoding, or strips the prefix when decoding. (string, default:"")
    • new_name: New column name if you want to rename (string, default: null)

Example

filters:
  - type: base58
    columns:
    - { name: _id }
    - { name: account_id, encode: true, prefix: account_, new_name: public_account_id }

Build

$ ./gradlew gem  # -t to watch change of files and rebuild continuously

Hat tip to kamatama41/embulk-filter-hash