Dave Rolsky > Fey-ORM > Fey::Meta::Class::Schema

Download:
Fey-ORM-0.46.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Stalled  1
View/Report Bugs
Module Version: 0.46   Source  

NAME ^

Fey::Meta::Class::Schema - A metaclass for schema classes

VERSION ^

version 0.46

SYNOPSIS ^

  package MyApp::Schema;

  use Fey::ORM::Schema;

  print __PACKAGE__->meta()->ClassForSchema($schema);

DESCRIPTION ^

This is the metaclass for schema classes. When you use Fey::ORM::Schema in your class, it uses this class to do all the heavy lifting.

METHODS ^

This class provides the following methods:

Fey::Meta::Class::Schema->ClassForSchema($schema)

Given a Fey::Schema object, this method returns the name of the class which "has" that schema, if any.

Fey::Meta::Class::Schema->SchemaForClass($class)

Given a class, this method returns the Fey::Schema object associated with that class, if any.

$meta->table()

Returns the Fey::Schema for the metaclass's class.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: