Commom database API for Ruby


(Jonas Koch Bentzen) #1

Is there a database API for Ruby out there that is considered the
common database API (like JDBC for Java)? DBI? RDBC? The latter seems to
be kind of dead, so I’m guessing DBI is the most commonly used. What do
you use?


(Markus Jais) #2

Jonas Koch Bentzen wrote:

Is there a database API for Ruby out there that is considered the
common database API (like JDBC for Java)? DBI? RDBC? The latter seems to
be kind of dead, so I’m guessing DBI is the most commonly used. What do
you use?

I am using DBI and I really like it. it is easy to use, it is Ruby like (for
example the fetch method works like an iterator) and it is open source.

if you have not yet tried it, check it out. it supports all important
databases as far as I know. (have only used it with Mysql and Postgresql)

markus