twingly / ecco

:dolphin: MySQL replication binlog parser in JRuby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert rows to Ruby class

jage opened this issue · comments

Currently the rows are Java's AbstractMap::SimpleEntry, a Ruby Array or Hash (or similar) would make it easier to integrate with Ecco.

Not sure I understand, a Row is already a (J)Ruby object:

row_event = Ecco::RowEvent.new

Ah, title was a bit misleading, it should probably say just "rows", not "row events". The problem is

row_event.rows = data.rows

commented

Started a bit on this here #57
Closing the PR for now though due to priorities.