You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db writer doesn't truncate, but file writer does, when the force_truncate flag is on
db writer changes its behavior based on the Postgres version, and file writer doesn't (because it doesn't have a connection, but perhaps the user could pass a flag)
there are a lot of duplicated SQL statements between the files
As a user I would expect the "MySQL->Postgres" and "MySQL->file->Postgres" methods to have the same result. Should we refactor to reduce duplication and the differences between the two modes?
Aaron
The text was updated successfully, but these errors were encountered:
Hi,
It looks like postgres_db_writer and postgres_file_writer are doing different things now:
https://github.com/maxlapshin/mysql2postgres/blob/master/lib/mysql2psql/postgres_db_writer.rb#L87:
https://github.com/maxlapshin/mysql2postgres/blob/master/lib/mysql2psql/postgres_file_writer.rb#L109
As a user I would expect the "MySQL->Postgres" and "MySQL->file->Postgres" methods to have the same result. Should we refactor to reduce duplication and the differences between the two modes?
Aaron
The text was updated successfully, but these errors were encountered: