Jeffrey Ray Hallock > Storm-0.200 > Storm::Aeolus

Download:
Storm-0.200.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.200   Source   Latest Release: Storm-0.240

NAME ^

Storm::Aeolus - Install classes to the database

SYNOPSIS ^

 $storm->aeolus->install_class_table( 'Person' );

 $storm->aeolus->install_junction_tables( 'Person' );

 $storm->aeolus->install_class( 'Person' );   

DESCRIPTION ^

Aeolus is the Greek god of the winds. Storm::Aeolus can introspect your object classes and create the appropriate definitions in the database. It is important you setup a policy (see Storm::Policy) for any custom types you have created.

ATTRIBUTES ^

storm

The Storm storm instance that Aeolus should act on.

METHODS ^

backup_class $class, $filehandle, [\%opts]

Backup the data for an entire class and write it to the supplised fielhandle.

= item backup_class_table $class, $filehandle, [\%opts]

install_class $class

Installs the all necessary tables for storing the class by calling install_class_table and install_junction_tables on the $class.

install_class_table $class

Installs the primary data table for the $class.

install_junction_tables $class

Installs any junction tables necessary to store relationship information between objects.

install_model $class

Calls install_class for all members of the model;

AUTHOR ^

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>

COPYRIGHT ^

    Copyright (c) 2010 Jeffrey Ray Hallock. All rights reserved.
    This program is free software; you can redistribute it and/or
    modify it under the same terms as Perl itself.
syntax highlighting: