Hi all,
Is there any gem to copy data from mysql to postgres ?
I search lot but i didn’t get any thing .
Thanks
Fahim
Hi all,
Is there any gem to copy data from mysql to postgres ?
I search lot but i didn’t get any thing .
Thanks
Fahim
On Mon, Jan 14, 2013 at 6:06 AM, Fahim P. [email protected] wrote:
Is there any gem to copy data from mysql to postgres ?
I search lot but i didn’t get any thing .
You’re gonna have to figure that one out yourself by using 2 models
and some clever trickery, or you might be able to dump the data and
import into postgres if it’s generic enough with little effort but I
would much rather go the 2 model route even if it takes far more time.
On 14 January 2013 12:06, Fahim P. [email protected] wrote:
Hi all,
Is there any gem to copy data from mysql to postgres ?
I search lot but i didn’t get any thing .
Converting MySQL to PostgreSQL - Wikibooks, open books for an open world describes
how to do a dump from mysql and restore to postgres but I don’t see
any advantage of using a gem over that technique.
Colin
Thanks lot for reply.
Fahim
I really like yaml_db for this. I have only used it for SQLite to MySQL
and MySQL to MySQL, but it works smoothly and quickly, and in my case,
did not flinch at 2M records in a table.
Walter
I would like to add: if you have some custom mapping between the models,
you could write a simple rake task. Example:
http://myutil.com/2008/8/31/rake-task-transfer-rails-database-mysql-to-postgres
Regards,
Anton
Thanks lot for reply.
Few months ago i have studied about one gem which do this work, but i
forget the name.
Did any one know about this ?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs