NAME

DBIx::Class::AuditAny::Util::ResultMaker - On-the-fly creation of DBIC Result classes

DESCRIPTION

This package provides an easy way to conjurer new DBIC result classes into existence. It is typically used by DBIx::Class::AuditAny::Util::SchemaMaker and not called directly.

ATTRIBUTES

class_name

Required. Full class name of the result class to be created

class_opts

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

table_name

Required. The name of the table as would be supplied to ->table() in the result class.

columns

Required. ArrayRef of DBIC column definitions suitable as arguments for ->add_columns()

call_class_methods

Optional ArrayRef consumed in pairs, with the first value used as a method name, and the second value an ArrayRef holding the args to supply to the method. Each of these are called as class methods on the result class. This allows for any other calls to be handled, such as adding uniq keys, and so on.

METHODS

initialize

Initialization constructor. Expects the above attrs as a HashRef as they would be passed to new(). Creates the specified result class and invokes all the setup methods as defined above.

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.