DBIx::Class::InflateColumn::Serializer::Sereal - Sereal based Serialization for DBIx Class Columns
version 0.001002
Standard DBIx::Class definition:
package Some::Result::Item; use parent 'DBIx::Class::Core'; # Add Inflate::Column::Serializer to component loading. __PACKAGE__->load_components( 'InflateColumn::Serializer', 'Core' ); __PACKAGE__->table('item'); __PACKAGE__->add_column( itemid => { data_type => 'integer' }, ); __PACKAGE__->set_primary_key('itemid'); __PACKAGE__->add_column( data => { data_type => 'text', size => 1024, serializer_class => 'Sereal', # This line tells InflateColumn::Serializer what class to use. } ); __PACKAGE__->source_name('Item');
This is an implementation detail for the InflateColumn::Serializer module.
InflateColumn::Serializer
my $freezer = ::Sereal->get_freezer( $column, $info, $column_args ); my $string = $freezer->( $object ); # $data isa string
my $unfreezer = ::Sereal>get_unfreezer( $column, $info, $args ); my $object = $unfreezer->( $string );
Kent Fredric <kentnl@cpan.org>
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.
To install DBIx::Class::InflateColumn::Serializer::Sereal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::InflateColumn::Serializer::Sereal
CPAN shell
perl -MCPAN -e shell install DBIx::Class::InflateColumn::Serializer::Sereal
For more information on module installation, please visit the detailed CPAN module installation guide.