App-Office-CMS
view release on metacpan or search on metacpan
lib/App/Office/CMS/Database.pm view on Meta::CPAN
RaiseError => 0,
HandleError => Exception::Class::DBI->handler,
});
eval {
$dbh->do('insert into non_extistent_table values(1)')
};
if (my $e = Exception::Class->caught('Exception::Class::DBI')) {
say $e->err;
say $e->errstr;
} else {
# Check for other exceptions as required
}
=cut
if ($$config{dsn} =~ /SQLite/i)
{
$self -> dbh -> do('PRAGMA foreign_keys = ON');
}
( run in 1.072 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )