GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CATALYST::MODEL::ORYX (3)

.ds Aq ’

NAME

Catalyst::Model::Oryx - Oryx model component for Catalyst

CONTENTS

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,
 });



DESCRIPTION

This 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

new Constructor and calls the connect method which it inherits from Oryx. If you’ve used the helper script to install the Oryx model, then DBM::Deep will be used by default with the datapath set to ’/tmp’ - this can be useful for easily testing your persistent objects without the need to do any RDBMS setup.

AUTHOR

Richard Hundt <richard NO SPAM AT protea-systems.com>

SEE ALSO

Catalyst, Oryx

LICENCE

This module is free software and may be used under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CATALYST::MODEL::ORYX (3) 2005-10-23

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.