develooper Front page | perl.moose | Postings from February 2012

Re: MooseX::Storage -- what should pack() look like for Class::DBI?

Thread Previous | Thread Next
From:
Chris Prather
Date:
February 12, 2012 14:49
Subject:
Re: MooseX::Storage -- what should pack() look like for Class::DBI?
Message ID:
CAEFJ168n95yU2txh1o13SoG+B5ykgn9pCmQDLpVtj=erOobkvA@mail.gmail.com
On Sun, Feb 12, 2012 at 4:59 PM, Bill Moseley <moseley@hank.org> wrote:
> I'm using MooseX::Storage formatted with JSON to move some objects between
> machines.  If I try and serialize a Class::DBI row object (or whatever it's
> called in Class::DBI) MooseX::Storage complains that the class has no
> pack() method.
>
> What should that pack method look like?

With the provision that I don't use Class::DBI ... and haven't in
anger in some time ...

It would I think look an awful lot like: sub pack { shift->_data_hash() }

-Chris

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About