![]() |
![]()
| ![]() |
![]()
NAMECatalyst::Model::Oryx - Oryx model component for Catalyst SYNOPSIS# with the helper script/create.pl model Oryx Oryx # define your storage class by hand package CMS::M::Oryx; use base qw(Catalyst::Model::Oryx); __PACKAGE__->config( dsname => 'dbi:Pg:dbname=mydb', usname => 'jrandom' passwd => '70p53cr37' ); 1; # define a persistent class package CMS::M::Document; use base qw(Oryx::Class); our $schema = { attributes => [{ name => 'author', type => 'String', }], associations => [{ role => 'paragraphs', type => 'Array', }] }; 1; # use your persistent class use CMS::M::Document (auto_deploy => 1); # create tables as needed $doc = CMS::M::Document->create({ author => 'Some Clever Guy', }); DESCRIPTIONThis module implements an Oryx object persistence model component for the Catalyst application framework. See Oryx and Oryx::Class for details on how to use Oryx. METHODS
AUTHORRichard Hundt <richard NO SPAM AT protea-systems.com> SEE ALSOCatalyst, Oryx LICENCEThis module is free software and may be used under the same terms as Perl itself.
|