<?xml version="1.0" encoding="windows-1252"?>
<node id="279155" title="Re: Re: Class::DBI Intro" created="2003-07-30 08:38:06" updated="2005-08-11 02:18:26">
<type id="11">
note</type>
<author id="5348">
Corion</author>
<data>
<field name="doctext">
&lt;p&gt;I think you are looking at Class::DBI from the wrong angle - Class::DBI is not a tool to force existing tables (and their relations) into classes/objects, but to provide some simplicistic way of storing objects in tables.&lt;/p&gt;
&lt;p&gt;Class::DBI &lt;tt&gt;isa&lt;/tt&gt; [cpan://Ima::DBI] and thus has support for adding custom SQL constructors if you need to create an object resp. find an object through a complex query which you don't want/can't reproduce via Perl.&lt;/p&gt;
&lt;small&gt;&lt;code&gt;
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ;    # The  
$d = new HTTP::Daemon and fork and getprint $d-&gt;url and exit;#spider
($c = $d-&gt;accept())-&gt;get_request(); $c-&gt;send_response( new   #in the
HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' #  web 
&lt;/code&gt;&lt;/small&gt;
</field>
<field name="root_node">
279077</field>
<field name="parent_node">
279149</field>
</data>
</node>
