ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-DBI/DBI.pm
(Generate patch)

Comparing AnyEvent-DBI/DBI.pm (file contents):
Revision 1.7 by root, Mon Jul 21 02:34:40 2008 UTC vs.
Revision 1.9 by root, Thu Nov 6 13:56:58 2008 UTC

26=head1 DESCRIPTION 26=head1 DESCRIPTION
27 27
28This module is an L<AnyEvent> user, you need to make sure that you use and 28This module is an L<AnyEvent> user, you need to make sure that you use and
29run a supported event loop. 29run a supported event loop.
30 30
31This module implements asynchronous DBI access my forking or executing 31This module implements asynchronous DBI access by forking or executing
32separate "DBI-Server" processes and sending them requests. 32separate "DBI-Server" processes and sending them requests.
33 33
34It means that you can run DBI requests in parallel to other tasks. 34It means that you can run DBI requests in parallel to other tasks.
35 35
36The overhead for very simple statements ("select 0") is somewhere 36The overhead for very simple statements ("select 0") is somewhere
250 delete $self->{ww}; 250 delete $self->{ww};
251 delete $self->{fh}; 251 delete $self->{fh};
252 252
253 $@ = $error; 253 $@ = $error;
254 254
255 if ($self->{on_error}) {
255 $self->{on_error}($self, $filename, $line, $fatal) 256 $self->{on_error}($self, $filename, $line, $fatal);
256 if $self->{on_error}; 257 return unless $fatal;
258 }
257 259
258 die "$error at $filename, line $line\n"; 260 die "$error at $filename, line $line\n";
259} 261}
260 262
261sub _req { 263sub _req {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines