Help for this page

Select Code to Download


  1. or download this
        
    $self->{db} = DBI->connect(
        "dbi:SQLite:dbname=$db_file",
    ...
        "",
        {RaiseError => 1}
    ) or die $DBI::errstr;
    
  2. or download this
    { # crash the connect()
    
    ...
            'DBI::db', 
            "dbh loaded ok";
    }
    
  3. or download this
    23 50 T F unless $self->{'db'} = 'DBI'->connect("dbi:SQLite:dbname=$db
    +_file", '', '', {'RaiseError', 1})
    
  4. or download this
    Files=19, Tests=894, 83 wallclock secs ...
    Result: PASS