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

[email protected] (Chris Prather)
Newsgroups perl.moose
Message-ID <CAEFJ168n95yU2txh1o13SoG+B5ykgn9pCmQDLpVtj=erOobkvA@mail.gmail.com>
On Sun, Feb 12, 2012 at 4:59 PM, Bill Moseley <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.