NAME
DBICx::Modeler::Generator::CLI - Command line interface to DBICx::Modeler::Generator
SYNOPSIS
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;
DESCRIPTION
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.
CAVEAT
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
SEE ALSO
AUTHOR
- MORIYA Masaki (a.k.a. Gardejo)
-
<moriya at ermitejo dot com>
, http://ttt.ermitejo.com/
COPYRIGHT AND LICENSE
Copyright (c) 2009 by MORIYA Masaki (a.k.a. Gardejo), http://ttt.ermitejo.com.
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.