soundcloud / lhm

Online MySQL schema migrations
BSD 3-Clause "New" or "Revised" License
1.83k stars 190 forks source link

Is there a way to get the no of records that were updated? #154

Open deeptianand opened 6 years ago

deeptianand commented 6 years ago

I am interested in running a query that will return ROW_COUNT() once the update query has been run.

Lhm.change_table :table_one do |m|
  m.ddl("UPDATE table_one...")
end

One the above is run, is there a way to query for the row_count(to get no of records updated via lhm)?