Help for this page

Select Code to Download


  1. or download this
    use base 'CGI::Application';
    use CGI::Application::Plugin::DBH (qw/dbh_config dbh/);
    ...
                    { RaiseError => 1 }
                    ]);
    }
    
  2. or download this
    sub get_setup {
        my $self = shift;
    ...
        
        return \%setup;
    }
    
  3. or download this
    '__DBH_CONFIG' => {
                     'subscriber' => [
    ...
    '__DBH' => {
              'subscriber' => bless( {}, 'DBI::db' )
            }
    
  4. 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};
        }