Ruby database

I don’t have the database created experience.

I write several ruby script and run them separate for difference data
type.

But now I should create a database to store them.

How do I store each result data into same database?

Now I’m studying Mysql syntax, but seems don’t use on ruby mysql?

Thanks,
CC

Can someone help me by taking me off this list please?

Thanks a lot

Jeanne Londiche

CC Chen wrote in post #1024021:

Now I’m studying Mysql syntax, but seems don’t use on ruby mysql?

Did you google for “ruby mysql”? What did you find?

Did you try “gem install mysql”? If so, did it install succesfully? If
not, show the error.

If it installed OK, did you try writing some code to use it? If it
didn’t work, what error message or problem did you see?

Note the mysql gem is a “low level” API: a thin wrapper around the C
mysql API. If you use it, your code will be tied to mysql only.

There are several higher-level APIs - e.g. ActiveRecord, Sequel,
DataMapper - which both decouple you from the underlying database, and
give higher-level abstractions to make your code shorter and simpler. If
you use one of these, you’ll need to install it in addition to the mysql
gem.

Regards,

Brian.

On Wed, Sep 28, 2011 at 8:43 AM, CC Chen [email protected] wrote:

I don’t have the database created experience.

I write several ruby script and run them separate for difference data
type.

But now I should create a database to store them.

How do I store each result data into same database?

Now I’m studying Mysql syntax, but seems don’t use on ruby mysql?

From what you write it is not entirely clear whether you need an RDBMs
like MySQL at all. What data do you have and what do you want to do
with it after you have stored it? Or put differently: why do you want
to store it?

Cheers

robert

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