NAME

App::Manoc::DB::Helper::Row::TupleArchive - Tuple archive support

VERSION

version 2.99.2

DESCRIPTION

Define tuple columns for App::Manoc::DB::Helper::ResultSet::TupleArchive

SYNOPSYS

package MySchema::Result::Bar;

use strict;
use warnings;

use parent 'DBIx::Class::Result';

__PACKAGE__->load_components('+App::Manoc::DB::Helper::Row::TupleArchive');

# define resultset for using ResultSet::TupleArchive
__PACKAGE__->resultset_class('MySchema::ResultSet::Bar');

__PACKAGE__->set_tuple_archive_columns(qw(macaddr ipaddr vlan));

METHODS

set_tuple_archive_columns(@column_names)

Define the columns in the tuple

tuple_archive_columns

Get the names of the columns in the tuple

AUTHORS

  • Gabriele Mambrini <gmambro@cpan.org>

  • Enrico Liguori

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Gabriele Mambrini.

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