ajokela/mysqltopostgres — pull request #1 by pclark97 (2012-09-22 02:46:47+00:00)
Title: Some refactored connection stuff

Hi Alex:
I made some changes to connection and to postgres_db_writer, so that this plumbing could be used to send a file containing the output of mysqltopostgres even if that file wasn't generated during this run.

The main change is to move the 'send a file to postgres' logic into mysql2psql/connection.rb, and to change the PostgresDBWriter#inload method to use the new code in connection rather than doing it itself.