Click here to get back home

Class::DBI and Ruby ActiveRecord::Associations ER diagram/macros

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Class::DBI and Ruby ActiveRecord::Associations ER diagram/macros Jean-Marc Molina 06-09-2006
Get Chitika Premium
Posted by Jean-Marc Molina on June 9, 2006, 3:22 am
Please log in for more thread options


Hello,

I would appreciate Perl developers comments on the
"ActiveRecord::Associations ER diagram/macros" [1] Ruby Forum topic and
"Ruby on Rails Associations macro-methods for tying objects together through
foreign" [2] Usenet message. I don't know much about Ruby and Perl and
wonder how and why the Class:DBI [3] Perl module is related to the
"ActiveRecord::Associations::ClassMethods" [4] Ruby module. They both use
the same terminology and I don't think it's a coïncidence.

In fact it's a comment to the "Simplify Business Logic with PHP DataObjects"
[5] ONLamp.com article that led me on this Perl community : « The greatest
part about it is that you can declare relationships between classes/tables
by indicating that a certain column in your table either is a foreign key
(has_a) or that your table's primary key is referenced from another one
(has_many). All the joins will then happen behind the scenes and you can use
simple accessors to navigate your relations. ». The full comment references
the Class:DBI Perl module and strongly recommand reading the "How to Avoid
Writing Code : Using Template Toolkit and Class::DBI" [6] Perl.com article.

JM.

Notes :
* [1] http://www.ruby-forum.com/topic/66010#new
* [3] http://www.class-dbi.com
* [4]
http://ar.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
* [5] http://www.onlamp.com/pub/a/php/2004/08/05/dataobjects.html
* [6] http://www.perl.com/pub/a/2003/07/15/nocode.html



Similar ThreadsPosted
Class::DBI::Schema2Code V 1.01 July 29, 2004, 7:14 am
Class::Tree V 1.24 July 29, 2004, 7:15 am
[RFC] Class::DataStore May 13, 2005, 2:45 pm
RFC: new module Class::MakeIntrospecMethods October 18, 2004, 4:30 pm
Perl Class::Struct October 13, 2005, 3:18 am
A doubt in using Class::Struct October 5, 2006, 2:33 pm
[ANNOUNCE] New module Class::IntrospectionMethods December 6, 2004, 2:12 pm
Class::MethodMaker v2 syntax help requested February 7, 2005, 9:33 pm
Namespace for MMS Parser class and a request for help August 13, 2005, 8:43 pm
Class::Std causing compilation errors November 24, 2007, 5:08 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap