Embulk filter plugin to convert hex to base58 and vice versa.
- Plugin type: filter
- 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
)
filters:
- type: base58
columns:
- { name: _id }
- { name: account_id, encode: true, prefix: account_, new_name: public_account_id }
$ ./gradlew gem # -t to watch change of files and rebuild continuously
Hat tip to kamatama41/embulk-filter-hash