DBICx::Modeler::Generator::CLI - Command line interface to DBICx::Modeler::Generator
use strict; use warnings; use DBICx::Modeler::Generator::CLI; my $generator = DBICx::Modeler::Generator::CLI->new_with_options->generator; $generator->deploy_database; $generator->update_schemata; $generator->update_models;
This module wraps the interface to DBICx::Modeler::Generator with MooseX::Getopt and MooseX::SimpleConfig.
See /examples/src/sbin/maintain_models.pl of this distribution for further detail.
/examples/src/sbin/maintain_models.pl
Orochi 0.00006 does not resolve a circular dependency.
In case of that the order is invalid, our program may die at Orochi::Injection::Constructor with the exception below:
Attribute (tree) does not pass the type constraint because: Validation failed for 'DBICx::Modeler::Generator::TreeLike' failed with value Orochi::Injection::BindValue=HASH(0x5921b8)
The valid order is below:
(1)Generator -> (2)Schema, (3)Driver, (3)Model, (5)Path, (7)Class (2)Schema -> (3)Driver, (5)Path, (7)Class (3)Driver -> (5)Path, (6)Tree (3)Model -> (5)Path, (7)Class (5)Path -> (6)Tree, (7)Class (6)Tree -> (7)Class
MooseX::Getopt
Getopt::Long
MooseX::SimpleConfig
DBICx::Modeler
DBIx::Class::Schema::Loader
DBICx::Modeler::Generator
<moriya at cpan dot org>, http://gardejo.org/
<moriya at cpan dot org>
Copyright (c) 2009-2010 MORIYA Masaki, alias Gardejo
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlgpl and perlartistic.
The full text of the license can be found in the LICENSE file included with this distribution.
To install DBICx::Modeler::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBICx::Modeler::Generator
CPAN shell
perl -MCPAN -e shell install DBICx::Modeler::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.