Base58 encoder/decoder for Embulk
Switch branches/tags
Nothing to show
Clone or download
kfitzgerald v0.1.3 – Refactored complex field processor to consistently assign va…
…lues on records. This fixes a nasty edge case when dealing with null convertable fields.
Latest commit 342707b Jun 28, 2017

README.md

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