DBIx::Class::Result::ColumnData is a Perl module used to extract column data only from a data object base on DBIx::Class::Core.
It defined relationships methods to extract columns data only of relationships.
SYNOPSIS
in your DBIx::Class::Core base class declare Result::ColumnData component
Package::Schema::Result::MyClass;
use strict;
use warning;
__PACKAGE__->load_component(qw/ ... Result::DataColumn /);
#Declare here associations before register_relationships_column_data
__PACKAGE__->belongs_to(...);
__PACKAGE__->has_many(...);
__PACKAGE__->register_relationships_column_data();
you will use get_column_data functions on instance of MyClass
$my_class->get_column_data
$my_class->I< relationships >_column_data
you can also hide some columns with parameter hide_field on columns definition
__PACKAGE__->add_columns("field_to_hide", {.... hide_field => 1});
Product's homepage
Requirements:
· Perl