On 12/18/05, Jesse Erlbaum <[EMAIL PROTECTED]> wrote:
> Just regarding the last part, "business objects" --
[snip]
>   CGI::Application modules are prohibited from having or using DBI
> database handles.

That is the rule I follow as well.  The only time the CGI::App object
sees a DBI handle is when it needs to pass one to a plugin (like the
session plugin).  It never ever uses it directly.

As a simple extension of this rule, if you use an O-R mapper like
Class::DBI (or Rose::DB::Object which I have been looking at lately),
you automatically enforce this separation.  Of course it is not
necesary to use an O-R mapper, but it can simplify a great deal of
your code while providing that clean separation for you.

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to