I will do webpage scraping using Ruby and required Gems. But looking for
a capable database into which I can store the data,which I will fetch
from the script.
Thus asking if Ruby has any inbuilt one or suggest me if any open-source
DB,which is capable with Ruby?
Are all of the above - “MySQL, SQLite, PostgreSQL” open-source?
Yes. Really, the choice depends on your use case(s), platform, and
personal preference so I’d just try them all
Good luck.
I need 4 tables with more or less 40,000 rows in each,which must be
capable of producing report data as export in excel or CSV. Need to run
all kind of SQl queries into it,to get rows.
I will do webpage scraping using Ruby and required Gems. But looking for
a capable database into which I can store the data,which I will fetch
from the script.
Thus asking if Ruby has any inbuilt one or suggest me if any open-source
DB,which is capable with Ruby?
Thanks
Ruby comes with several database-like libraries in the standard lib:
dbm, gdbm, YAML::DBM, pstore
Outside of Ruby, sqlite is probably the easiest to get started with if
you are already familiar with SQL.
Though if you don’t know raw SQL you’re in for some troubles. Study sql
and
play with it for a while before you try making anything expansive. One
hours planning is worth 10 hours of frustrated coding.
Though if you don’t know raw SQL you’re in for some troubles. Study sql
and
play with it for a while before you try making anything expansive. One
hours planning is worth 10 hours of frustrated coding.
@Brandon - I am 3 years of experienced with Oracle Sql,PL-sql. So Sql is
not a big deal for me. The worried point is, which database should I
choose.
I will do webpage scraping using Ruby and required Gems. But looking for
a capable database into which I can store the data,which I will fetch
from the script.
Thus asking if Ruby has any inbuilt one or suggest me if any open-source
DB,which is capable with Ruby?
Thanks
PostgreSQL or Sqlite would be what I’d recommend.
sqlite would be the easiest to get up and running with.
I think the best course for a new project is to start simple, go with
sqlite, if you find you need more performance or some particular
feature, bump up to postgresql. mysql is pretty common, but there are
concerns about its future under oracle. That said, there’s no shortage
of opinions everywhere.
The Sequel gem is probably a good place to start, since it sounds like
you’re well of in SQL programming:
Even with that, it can take a bit to understand the Ruby that goes
around it, so I’d suggest experimenting a bit, do some prototypes to
figure out what you need, throw them away and then design, write your
tests, then write your app code.