From: Phillip Gawlowski Date: 2008-04-17T01:35:29+09:00 Subject: Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christopher Dicely wrote: |> Needs an API, though. And that needs working with Ruby's C code first, |> to "teach" the Ruby language basic functionality (or to enable adapters |> in a coherent manner). | | Even if Ruby didn't have a database API, why would it take working with Ruby's | C code to add it? All an API is is a defined interface. And guess where the Ruby language is implemented? And for a more-or-less coherent API similar to JDBC or ODBC, you'd have to dig a bit into Ruby. Not a lot, I guess, but still a bit. | ActiveRecord, DataMapper, and Sequel are ORM libraries, not really | comparable to JDBC. JDBC's closest Ruby equivalent is Ruby-DBI. Similar != equivalent. And Ruby::DBI isn't all that agnostic in regard to databases, since you still have to use SQL (which is true with JDBC, too, I know). However, JDBC massages SQL a bit, to enable a somewhat seamless integration of databases in applications. Similar to what ORM libraries offer for Ruby. You can expect to get the same type of result out of an ORM, similar to JDBC. While Ruby::DBI needs a bit of fine tuning in that area. That might be different in newer releases than the one I looked at and used (that was, what, a year and a half ago?). - -- Phillip Gawlowski Twitter: twitter.com/cynicalryan ~ Why do we drink cow's milk? Who was the first guy who first looked at a cow and said "I think I'll drink whatever comes out of these things when I squeeze 'em!"? -- Calvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgGKssACgkQbtAgaoJTgL8M0ACgmEKVnZT1hBH4mzPh+FO8sdVT pOoAn0qVKJWrNwle1/+l0Id0n0puZadu =26Fg -----END PGP SIGNATURE-----