# Commom database API for Ruby

**URL:** <https://rubytalk.org/t/commom-database-api-for-ruby/258>\
**Category:** ruby-talk\
**Created:** [14 June 2002 14:13 UTC](https://rubytalk.org/t/commom-database-api-for-ruby/258 "2002-06-14T14:13:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas\_Koch\_Bentzen](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@Jonas\_Koch\_Bentzen](https://rubytalk.org/u/Jonas_Koch_Bentzen)\
**Post date:** [14 June 2002 14:13 UTC](https://rubytalk.org/t/commom-database-api-for-ruby/258/1 "2002-06-14T14:13:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Markus\_Jais3](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@Markus\_Jais3](https://rubytalk.org/u/Markus_Jais3)\
**Post date:** [14 June 2002 14:33 UTC](https://rubytalk.org/t/commom-database-api-for-ruby/258/2 "2002-06-14T14:33:30Z")

</div>

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
