Re: embedding DB handle in object (was RE: adding key to DB object)
From: Brandon Metcalf (bmetcalf_at_nortel.com)
Date: 03/30/05
- Next message: Will Rutherdale: "RE: embedding DB handle in object (was RE: adding key to DB objec t)"
- Previous message: Tim Bunce: "Re: embedding DB handle in object (was RE: adding key to DB object)"
- In reply to: Tim Bunce: "Re: embedding DB handle in object (was RE: adding key to DB object)"
- Next in thread: Ronald J Kimball: "RE: adding key to DB object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Mar 2005 17:32:18 -0600 (CST) To: Tim Bunce <Tim.Bunce@pobox.com>
T == Tim.Bunce@pobox.com writes:
T> On Tue, Mar 29, 2005 at 04:58:53PM -0600, Brandon Metcalf wrote:
T> > In trying to take your suggesting and embed a DB handle in my own
T> > object, this is what i've come up with. However, a error is being
T> > thrown when DBI is trying to destory the handle which I understand.
T> > What I don't get is how to do this properly.
T> Embedding is simple has-a relationship not an IS-A. So you don't
T> want to include any DBI classes in your @ISA:
T> > @ISA = qw{ Exporter DBI::db };
Excellent! Thanks.
-- Brandon
- Next message: Will Rutherdale: "RE: embedding DB handle in object (was RE: adding key to DB objec t)"
- Previous message: Tim Bunce: "Re: embedding DB handle in object (was RE: adding key to DB object)"
- In reply to: Tim Bunce: "Re: embedding DB handle in object (was RE: adding key to DB object)"
- Next in thread: Ronald J Kimball: "RE: adding key to DB object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]