Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Object-Relational Mapping

Reply
Thread Tools

Object-Relational Mapping

 
 
Pablo Lorenzzoni
Guest
Posts: n/a
 
      08-23-2004
Hello ALL!

I am looking for a good/simple implementation of ORM pattern to use in my
webscripts. I've never used any before, so I was wondering if you could help
me out...

Here is the list of those I know of:
* Active_Record - http://activerecord.rubyonrails.org/
* Lafcadio - http://lafcadio.rubyforge.org/
* Highcrest:ersistence - http://highcrest.topcities.com/
* Vapor - http://vapor.rubyforge.org/
* Kansas - http://enigo.com/projects/kansas/index.html

Do any one know any of those above and can suggest me which one is the best
(and why)? Or maybe point me so some other implementation...

TIA,

Pablo

--
Pablo Lorenzzoni (Spectra) <>
GnuPG: 0x268A084D at pgp.mit.edu/keyring.debian.org
This message is protected by DoubleROT13 encryption
Attempting to decode it violates the DMCA/WIPO acts


 
Reply With Quote
 
 
 
 
Kirk Haines
Guest
Posts: n/a
 
      08-24-2004
On Tue, 24 Aug 2004 08:59:44 +0900, Pablo Lorenzzoni wrote

> Here is the list of those I know of:
> * Active_Record - http://activerecord.rubyonrails.org/
> * Lafcadio - http://lafcadio.rubyforge.org/
> * Highcrest:ersistence - http://highcrest.topcities.com/
> * Vapor - http://vapor.rubyforge.org/
> * Kansas - http://enigo.com/projects/kansas/index.html
>
> Do any one know any of those above and can suggest me which one is
> the best
> (and why)? Or maybe point me so some other implementation...


You're going to have to try a few out and see what you like. There are a lot
of differences in the libraries you list. Lafcadio and Active Record require
specific adaptors for specific databases, so if there's a database that you
want to use that doesn't have an adaptor, you will have to be the one to write
the adaptor. AR has a bunch of interest and has several people actively
working on things for it. It makes some assumptions on table design, but
following them lets it simplify a lot of the mechanics of declaring relationships.

Kansas, which is what I am working on developing, works via DBI, which has
it's own tradeoffs versus dedicated adaptors. It _should_ work on any db that
works with DBI, given that a few basic things are provided by the DBD driver
(though it appears that the SQLite driver may be a problem; I'm trying to
devise a workaround). It is not as mature as either AR or Lafcadio, but is
stable and solid enough for me to be using it in software that is getting hit
hard regularly. It is closer to AR than to Lafcadio in how relationships are
defined, but is a little wordier in defining relationships than AR, a tradeoff
for making fewer assumptions and being more flexible in table design.

Read some of the docs. Looks at some of the examples, download a few of them
and try them out. One of them will appeal to you more than the others. Give
that one a serious try.

If you decide to give Kansas a go, feel free to email me if you run into any
problems.


Kirk Haines



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"not enough server storage" error when mapping drive =?Utf-8?B?bXV6eg==?= Wireless Networking 1 08-05-2005 03:00 AM
Waiting for Wireless before mapping drives =?Utf-8?B?anBtd2l6YXJk?= Wireless Networking 1 04-26-2005 04:11 PM
Problem mapping some folders? =?Utf-8?B?QXN5bHVt?= Wireless Networking 1 03-26-2005 04:40 PM
Mapping a local folder Rick Donnellon Wireless Networking 1 01-11-2005 12:32 AM
XP, Novell and Losing Mapping =?Utf-8?B?RGo=?= Wireless Networking 0 08-18-2004 12:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57