DBIx::Class::Schema::Loader::RelBuilder

DBIx::Class::Schema::Loader::RelBuilder is a Perl module that builds relationships for DBIx::Class::Schema::Loader.
Download

DBIx::Class::Schema::Loader::RelBuilder Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Brandon Black
  • Publisher web site:
  • http://search.cpan.org/~blblack/DBIx-Class-Schema-Loader-0.03007/lib/DBIx/Class/Schema/Loader/RelBuilder.pm

DBIx::Class::Schema::Loader::RelBuilder Tags


DBIx::Class::Schema::Loader::RelBuilder Description

DBIx::Class::Schema::Loader::RelBuilder is a Perl module that builds relationships for DBIx::Class::Schema::Loader. DBIx::Class::Schema::Loader::RelBuilder is a Perl module that builds relationships for DBIx::Class::Schema::Loader.This class builds relationships for DBIx::Class::Schema::Loader. This is module is not (yet) for external use.METHODSnewArguments: schema_class (scalar), fk_info (hashref), inflect_plural, inflect_singular$schema_class should be a schema class name, where the source classes have already been set up and registered. Column info, primary key, and unique constraints will be drawn from this schema for all of the existing source monikers.The fk_info hashref's contents should take the form: { TableMoniker => , remote_columns => , remote_moniker => 'AnotherTableMoniker', }, # ... ], AnotherTableMoniker => , # ... }Options inflect_plural and inflect_singular are optional, and are better documented in DBIx::Class::Schema::Loader::Base.generate_codeThis method will return the generated relationships as a hashref per table moniker, containing an arrayref of code strings which can be "eval"-ed in the context of the source class, like: { 'Some::Source::Class' => , 'Another::Source::Class' => , # ... }You might want to use this in building an on-disk source class file, by adding each string to the appropriate source class file, prefixed by __PACKAGE__->. Requirements: · Perl


DBIx::Class::Schema::Loader::RelBuilder Related Software