- or download this
use base 'CGI::Application';
use CGI::Application::Plugin::DBH (qw/dbh_config dbh/);
...
{ RaiseError => 1 }
]);
}
- or download this
sub get_setup {
my $self = shift;
...
return \%setup;
}
- or download this
'__DBH_CONFIG' => {
'subscriber' => [
...
'__DBH' => {
'subscriber' => bless( {}, 'DBI::db' )
}
- or download this
unless ($self->{__DBH_CONFIG}{$name}){
__auto_config($self, $name);
croak "must call dbh_config() before calling dbh()." unless $s
+elf->{__DBH_CONFIG}{$name};
}