
DBIx::Class::KiokuDB - Refer to KiokuDB objects from DBIx::Class tables.

See DBIx::Class::Schema::KiokuDB.
package MyApp::DB::Result::Album;
use base qw(DBIx::Class);
__PACKAGE__>load_components(qw(Core KiokuDB));
__PACKAGE__->table('album');
__PACKAGE__->add_columns(
id => { data_type => "integer" },
title => { data_type => "varchar" },
# the foreign key for the KiokuDB object:
metadata => { data_type => "varchar" },
);
__PACKAGE__->set_primary_key('id');
# enable a KiokuDB rel on the column:
__PACKAGE__->kiokudb_column('metadata');

This DBIx::Class component provides the code necessary for DBIx::Class::Row objects to refer to KiokuDB objects stored in KiokuDB::Backend::DBI.

Declares a relationship to any KiokuDB object.
In future versions adding relationships to different sub-collections will be possible as well.

A convenience method that calls "store" in KiokuDB on all referenced KiokuDB objects, and then invokes insert_or_update on $self.
See DBIx::Class::Row.
