MySQL-ORM
view release on metacpan or search on metacpan
lib/MySQL/ORM/Generate.pm view on Meta::CPAN
package MySQL::ORM::Generate;
our $VERSION = '0.01';
use Modern::Perl;
use Moose;
use namespace::autoclean;
use Method::Signatures;
use Data::Printer alias => 'pdump';
use MySQL::Util::Lite;
use MySQL::ORM::Generate::Class::Db;
extends 'MySQL::ORM::Generate::Common';
##############################################################################
## required attributes
##############################################################################
has dbh => (
is => 'rw',
isa => 'Object',
required => 1,
);
##############################################################################
## optional attributes
##############################################################################
has dir => (
is => 'ro',
isa => 'Str',
default => '.',
);
has namespace => (
is => 'ro',
isa => 'Str',
);
has ignore_tables => (
is => 'ro',
isa => 'ArrayRef',
default => sub { [] },
);
has only_tables => (
is => 'ro',
isa => 'ArrayRef',
default => sub { [] },
);
##############################################################################
## private attributes
##############################################################################
has _lite => (
is => 'rw',
isa => 'MySQL::Util::Lite',
lazy => 1,
builder => '_build_lite'
);
##############################################################################
## methods
##############################################################################
( run in 1.074 second using v1.01-cache-2.11-cpan-39bf76dae61 )