Fey::Object::Schema - Base class for schema-based objects
version 0.45
package MyApp::Schema; use Fey::ORM::Schema; has_schema(...);
This class is a the base class for all schema-based objects.
This class provides the following methods:
Enables the object class for all of the table classes associated with this class's schema.
Disables the object class for all of the table classes associated with this class's schema.
Clears the object class for all of the table classes associated with this class's schema.
Given a code ref, this method will begin a transaction and execute the coderef. If the coderef runs normally (no exceptions), it commits, otherwise it rolls back and rethrows the error.
This method will handle nested transactions gracefully if your DBMS does not. It doesn't emulate actual partial commits, but it does prevent DBI from throwing an error.
The second argument can be a Fey::DBIManager::Source object. If no source is specified, then this method will use the default source.
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 $class->DBIManager() will simply create one by calling Fey::DBIManager->new().
$class->DBIManager()
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>
This software is copyright (c) 2011 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Fey::ORM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fey::ORM
CPAN shell
perl -MCPAN -e shell install Fey::ORM
For more information on module installation, please visit the detailed CPAN module installation guide.