Code Monkey home page Code Monkey logo

dbix-class-inflatecolumn-serializer-sereal's Introduction

NAME

DBIx::Class::InflateColumn::Serializer::Sereal - Sereal based Serialization for DBIx Class Columns

VERSION

version 0.001002

SYNOPSIS

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');

METHODS

get_freezer

This is an implementation detail for the InflateColumn::Serializer module.

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

get_unfreezer

This is an implementation detail for the InflateColumn::Serializer module.

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

AUTHOR

Kent Fredric [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Kent Fredric [email protected].

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

dbix-class-inflatecolumn-serializer-sereal's People

Contributors

kentfredric avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.