Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Is DBIC following the ActiveRecord pattern?

by McA (Priest)
on Jul 09, 2013 at 08:20 UTC ( #1043260=perlquestion: print w/ replies, xml ) Need Help??
McA has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

does DBIx::Class (strictly) follow the Active record pattern (

I'm asking because there are methods accessible from a single object (e.g.->update), but also methods which are called on the ResultSet object. Also object (row) creation seems to be done via the ResultSet and not by the object itself.

I'm really interested in the design. So, does the object know how to persist itself? The answer seems to be 'yes' concerning an update, but 'no' concerning the initial persistence.

Where are the OO-people out there? How do you think about it (despite probably recommending DBIC as the one and only)?

Best regards

Comment on Is DBIC following the ActiveRecord pattern?
Download Code
Replies are listed 'Best First'.
Re: Is DBIC following the ActiveRecord pattern?
by daxim (Chaplain) on Jul 09, 2013 at 08:31 UTC
    mst in #dbix-class says:
    ActiveRecord-"ish". Class::DBI was very much AR style. DBIC is AR-except-not-as-retarded.


      thank you for being our PerlMonks-IRC-gateway... :)

      Can you ask what "AR-except-not-as-retarded" mean? ;)

      Best regards

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1043260]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-11-25 11:12 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (674 votes), past polls