NAME

DBIx::Class::InflateColumn::Serializer::JSYNC - Basic JSON Object Serialization Support for DBIx::Class.

VERSION

version 0.002001

DESCRIPTION

This is basically the only serialization backend I could find that wasn't "Dumper()", and actually seemed to work with arbitrary bless()

package Foo::Result::Thing;
__PACKAGE__->load_components('InflateColumn::Serializer', 'Core');
__PACKAGE__->table('thing');

....

__PACKAGE__->add_column(
    data => {
        data_type => 'text',
        serializer_class => 'JSYNC',
    }
);

METHODS

get_freezer

my $freezer = ::JSYNC->get_freezer( $column, $info, $args );
my $string = $freezer->( $object );
# $data isa string

get_unfreezer

my $unfreezer = ::JSYNC->get_unfreezer( $column, $info, $args );
my $object = $unfreezer->( $string );

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.