From: Christopher Dicely Date: 2008-04-17T01:12:32+09:00 Subject: Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? On Wed, Apr 16, 2008 at 7:39 AM, Phillip Gawlowski wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Thomas Kellerer wrote: > > | The Postgres JDBC driver is 100% Java and definitely does not rely on > | any external DLLs or libraries, it speaks the native PG protocol (AFAIK > | there is no such thing as a "Java interface"). So why shouldn't this be > | possible with Ruby as well? > > Because Ruby doesn't really compare to Java in terms of infrastructure > and APIs? While this may be true in some general sense, I don't think its really all that relevant here. PostgreSQL's protocol is documented and supported over TCP/IP, and Ruby certainly has TCP/IP support, so there is no reason you couldn't write a pure Ruby PostgreSQL driver. > Long story short: It's not impossible to define a standard API for Ruby, > but somebody has to do it yet (don't look at me, C makes me scream). Ruby has a fairly standard DB API: Ruby-DBI. And there's no reason you need to use C to write Ruby-DBI database drivers.