… | |
… | |
105 | and your database handle became invalid. In addition to invoking the |
105 | and your database handle became invalid. In addition to invoking the |
106 | C<on_error> callback, all of your queued request callbacks are called |
106 | C<on_error> callback, all of your queued request callbacks are called |
107 | without only the C<$dbh> argument. |
107 | without only the C<$dbh> argument. |
108 | |
108 | |
109 | If omitted, then C<die> will be called on any errors, fatal or not. |
109 | If omitted, then C<die> will be called on any errors, fatal or not. |
|
|
110 | |
|
|
111 | Note that AnyEvent::DBI will not catch errors in user-provided callbacks: |
|
|
112 | if you die in your callback, things might malfunction. |
110 | |
113 | |
111 | =item on_connect => $callback->($dbh[, $success]) |
114 | =item on_connect => $callback->($dbh[, $success]) |
112 | |
115 | |
113 | If you supply an C<on_connect> callback, then this callback will be |
116 | If you supply an C<on_connect> callback, then this callback will be |
114 | invoked after the database connect attempt. If the connection succeeds, |
117 | invoked after the database connect attempt. If the connection succeeds, |