
Fey::ORM::Schema - Provides sugar for schema-based classes

package MyApp::Schema; use Fey::ORM::Schema; has_schema ...; no Fey::ORM::Schema;

Use this class to associate your class with a schema. It exports a number of sugar functions to allow you to define things in a declarative manner.

This package exports the following functions:
Given a Fey::Schema object, this method associates that schema with the calling class.
Calling this function generates several methods and attributes in the calling class:
Returns the Fey::Schema object associated with the class.
Returns the Fey::Schema object associated with the class.
Set the Fey::DBIManager object associated with the class. If you don't set one explicitly, then the first call to CallingClass->DBIManager() will simply create one by calling Fey::DBIManager->new().
Returns the SQL factory class associated with the class. This defaults to Fey::SQL.
Set the SQL factory class associated with the class.

Dave Rolsky, <autarch@urth.org>

See Fey::ORM for details.

Copyright 2006-2008 Dave Rolsky, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module.