1 package DBIx::Class::Loader::Writing;
9 DBIx::Class::Loader::Writing - Loader subclass writing guide
13 package DBIx::Class::Loader::Foo;
15 # THIS IS JUST A TEMPLATE TO GET YOU STARTED.
18 use base 'DBIx::Class::Loader::Generic';
23 return qw/DBIx::Class::PK::Auto::Foo/;
24 # You may want to return more, or less, than this.
29 my $dbh = $self->{_storage}->dbh;
30 return $dbh->tables; # Your DBD may need something different
34 my ( $self, $table ) = @_;
36 return ( \@cols, \@primary );
42 $self->_belongs_to_many($table, $f_key, $f_table, $f_column);
43 # For each relationship you want to set up ($f_column is
44 # optional, default is $f_table's primary key)