I'm trying to write a script that uses FasterCSV.table and puts the result in a MySQL database

Trouble is, I know how to do the CSV part. But I don’t know how to do
the
MySQL part. How do I connect to a MySQL database? I mean, it seems
intuitive on Rails with ActiveRecord, but in a script?

Any ideas?

Ron

On Apr 1, 2008, at 8:30 PM, Ronald Steckly wrote:

Trouble is, I know how to do the CSV part. But I don’t know how to
do the
MySQL part. How do I connect to a MySQL database? I mean, it seems
intuitive on Rails with ActiveRecord, but in a script?

You can use ActiveRecord without Rails:

http://wiki.rubyonrails.org/rails/pages/HowToUseActiveRecordOutsideRails

James Edward G. II

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs