RapidApp

 view release on metacpan or  search on metacpan

lib/Plack/App/RapidApp/rDbic.pm  view on Meta::CPAN


Set to true to override the location used for Catalyst temporary files to be contained within
the C<workdir> instead of within the system temp. This is useful to avoid leaving temporary
files behind, but will slow startup because the asset files will be generated on each load.

Defaults to false, but set to true in the L<rdbic.pl> script.

=head2 local_tmp

Directory to use for C<app_tmp> when C<isolate_app_tmp> is true. Defaults to C<tmp/> within the
C<workdir>

=head2 model_name

Name of the C<Model::DBIC> in the generated app. Defaults to an auto-generated name based on the 
schema/dsn

=head2 model_config

Optional extra config to apply to the C<Model::DBIC> in the generated app. This is useful to be 
able to customize RapidDbic configs (See L<Catalyst::Plugin::RapidApp::RapidDbic>)

=head1 METHODS

=head2 to_app

PSGI C<$app> CodeRef. Derives from L<Plack::Component>

=head2 model_class

Full class name of the C<Model::DBIC> in the generated app.

=head2 app_dir

Home directory for the generated RapidApp/Catalyst app. This will be the app name within the 
C<workdir>

=head2 app_tmp

The temporary directory used by the generated RapidApp/Catalyst app. If C<isolate_app_tmp> is
true this will be within the C<workdir>, or whatever directory is set in C<local_tmp>. 
Otherwise it is the standard location returned by C<Catalyst::Utils::class2tempdir> for
the generated app (which is not cleaned up).

=head2 loader_options

Optional ArrayRef of loader_options which will be passed to the Schema::Loader. These should
be supplied as a list of name=value pairs, for example:

  loader_options => [qw/db_schema='%' generate_pod=1/]

This has the same effect as C<-o> options supplied to L<dbicdump>. For a complete list of
suported options, see L<DBIx::Class::Schema::Loader::Base>.

=head2 connect_options

Optional ArrayRef of connect_options to be added to the C<%extra_attributes> of the C<connect_info>.
(See L<DBIx::Class::Storage::DBI/connect_info>). Like C<loader_options>, these should be supplied 
as a list of name=value pairs, for example:

  connect_options => [qw/quote_names=0 mysql_enable_utf8=0/]

Note: the options in the above example are both set to C<'1'> by default (second only for MySQL).
So the above example is how you would go about turning these options off if needed for some reason.

=head2 total_counts_off

If set to true, grids will be initialized with the total count turned off (but they can still
be turned back on). Defaults to false (0)

=head1 SEE ALSO

=over

=item *

L<rdbic.pl>

=item * 

L<RapidApp>

=item * 

L<Plack::Component>

=item * 

L<Catalyst Advent 2014 - Day 16|http://www.catalystframework.org/calendar/2014/16>

=item * 

L<Catalyst Advent 2014 - Day 17|http://www.catalystframework.org/calendar/2014/17>

=back


=head1 AUTHOR

Henry Van Styn <vanstyn@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2014 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.

=cut




( run in 0.569 second using v1.01-cache-2.11-cpan-600a1bdf6e4 )