App-AutoCRUD
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/AutoCRUD/Context.pm view on Meta::CPAN
use Scalar::Does qw/does/;
use Encode ();
use namespace::clean -except => 'meta';
has 'app' => (is => 'ro', isa => 'App::AutoCRUD', required => 1,
handles => [qw/config dir/]);
has 'req' => (is => 'ro', isa => 'Plack::Request', required => 1,
handles => [qw/logger/]);
has 'req_data' => (is => 'ro', isa => 'HashRef',
builder => '_req_data', lazy => 1, init_arg => undef);
has 'base' => (is => 'ro', isa => 'Str',
builder => '_base', lazy => 1, init_arg => undef);
has 'path' => (is => 'rw', isa => 'Str',
builder => '_path', lazy => 1);
has 'template' => (is => 'rw', isa => 'Str');
has 'view' => (is => 'rw', isa => 'App::AutoCRUD::View',
builder => '_view', lazy => 1);
has 'process_time' => (is => 'rw', isa => 'Num');
lib/App/AutoCRUD/DataSource.pm view on Meta::CPAN
use Scalar::Does qw/does/;
use Data::Reach qw/reach/;
use SQL::Abstract::FromQuery 0.10;
use namespace::clean -except => 'meta';
has 'app' => (is => 'ro', isa => 'App::AutoCRUD', required => 1,
weak_ref => 1, handles => [qw/ dir/]);
has 'name' => (is => 'ro', isa => 'Str',
builder => '_name', lazy => 1);
has 'config' => (is => 'ro', isa => 'HashRef', reader => 'config_data',
builder => '_config', lazy => 1);
has 'dbh' => (is => 'ro', isa => 'DBI::db',
builder => '_dbh', lazy => 1);
has 'schema' => (is => 'ro', isa => 'Str|Object',
builder => '_schema', lazy => 1);
has 'query_parser' => (is => 'ro', isa => 'SQL::Abstract::FromQuery',
builder => '_query_parser', lazy => 1);
has 'tablegroups' => (is => 'ro', isa => 'ArrayRef',
builder => '_tablegroups', lazy => 1);
# indirectly generated through the _schema builder method
has 'generated_schema' => (is => 'ro', isa => 'Str', init_arg => undef);
has 'loaded_class' => (is => 'ro', isa => 'Str', init_arg => undef);
#======================================================================
# ATTRIBUTE BUILDERS
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.405 second using v1.00-cache-2.02-grep-82fe00e-cpan-72ae3ad1e6da )