The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBIx::Class::AuditAny::Util::SchemaMaker - On-the-fly creation of DBIC Schema classes

DESCRIPTION

This package provides an easy way to conjurer new DBIC schema classes into existence

ATTRIBUTES

schema_namespace

Required - the class name of the DBIC schema to be created

class_opts

Optional extra params to supply to Class::MOP::Class->create

results

HashRef of key/value pairs defining the result/sources to be created. The key is the source name, while the value must be a HashRef to be supplied to the initialize constructor of DBIx::Class::AuditAny::Util::ResultMaker. The class_name does not need to be specified here as it is automatically set according to the schema_namespace and the source name (key value).

METHODS

initialize

Initialization constructor. Expects the above attrs as a HashRef as they would be passed to new(). Creates the specified schema and associated result classes on-the-spot.

SEE ALSO

SUPPORT

IRC:

    Join #rapidapp on irc.perl.org.

AUTHOR

Henry Van Styn <vanstyn@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012-2015 by IntelliTree Solutions llc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.