Maypole::Plugin::Relationship - Simple Relationships for Maypole
Simple example:
package MyApp; use Maypole::Application qw(Relationship); MyApp->config->relationships( [ 'beer has bottles', 'a brewery produces beers' ] ); MyApp->setup( 'dbi:Pg:dbname=myapp', 'myuser', 'mypass' );
With Maypole::Plugin::Config::YAML:
package MyApp; use Maypole::Application qw(Config::YAML Relationship -Setup); __DATA__ --- #YAML:1.0 application_name: MyApp dsn: dbi:Pg:dbname=myapp user: postgres pass: 0 opts: AutoCommit: 1 template_root: '/home/sri/MyApp/templates' uri_base: http://localhost/myapp relationships: - beer has bottles - a brewery produces beers
Useful in combination with Maypole::Config::YAML.
Note that you need Maypole 2.0 or newer to use this module!
Sebastian Riedel, sri@oook.de
sri@oook.de
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
To install Maypole::Plugin::Relationship, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Maypole::Plugin::Relationship
CPAN shell
perl -MCPAN -e shell install Maypole::Plugin::Relationship
For more information on module installation, please visit the detailed CPAN module installation guide.