[Dbix-class] mk_classaccessor in 0.8003

Matt S Trout dbix-class at trout.me.uk
Thu Jul 19 20:12:22 GMT 2007


On Wed, Jul 18, 2007 at 07:39:40PM +0200, Ben Staude wrote:
> Am Mittwoch 18 Juli 2007 19:26 schrieb Ben Staude:
> 
> [snip]
> 
> > Making a patch for this unfortunately is far beyond my horizon. Has it at
> > all been intended to have mk_classaccessor in ::Storage::Statistics? If
> > not, what's the recommonded way to store class data (effectivly, I collect
> > the executed sql statements as class data for logging)?
> 
> Ooops, I just found that's not true... I use it for per-object, not class 
> data. But still, what to use instead of mk_classaccessor? Can I safely use 
> $self->{my_data} on a ::Storage::Statistics object?

Or just do

__PACKAGE__->mk_group_accessors(simple => 'my_data');

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Dbix-class mailing list