[Dbix-class] serializing DBIx::Class::ResultSourceHandle
ash_cpan at firemirror.com
Fri Feb 15 20:20:51 GMT 2008
Cos it contains a code-ref (the DBH) which can't be freezed.
But since then I did come up with *a* way of doing it:
> Provided as the recommened way of thawing schema objects. You can
> call Storable::thaw directly if you wish, but the thawed objects
> will not have a reference to any schema, so are rather useless
There are also freeze and dclone methods for symmetry. This was a new
addition since 0.08009 2008-01-20 13:30
On 15 Feb 2008, at 19:57, Jose Fonseca wrote:
> Hi, I just had the same problem that Bernhard Graf had in Sept. 2007
> and caught up with this discussion:
> Ash Berlin Wrote:
> "I wrote the ResultSourceHandle stuff, and I never could come up
> with a good way of specifying what schema to use in thawing the data."
> Quick question: why is the "schema" column of _source_handle undef'd
> when freeze()ing?
> On Thu, Sep 20, 2007 at 10:18:10AM +0200, Bernhard Graf wrote:
> > On Thursday 20 September 2007 09:42, Ash Berlin wrote:
> > > I wrote the ResultSourceHandle stuff, and I never could come up
> > > a good way of specifying what schema to use in thawing the data.
> > > currently you'd have to do
> > >
> > > $data->_source_handle->schema($schema);
> > Not pretty, but this works at least.
> just like it's always been since before ResultSourceHandle existed.
> Never call an _ prefix method from outside the object or a subclass
> Matt S Trout Need help with your Catalyst or DBIx::Class
> Technical Director http://www.shadowcat.co.uk/catalyst/
> Shadowcat Systems Ltd. Want a managed development or deployment
> http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://email@example.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the DBIx-Class