… | |
… | |
241 | |
241 | |
242 | =cut |
242 | =cut |
243 | |
243 | |
244 | =item reinitialize [not exported] |
244 | =item reinitialize [not exported] |
245 | |
245 | |
246 | Clears any internal caches (statement cache, database handle cache). |
246 | Clears any internal caches (statement cache, database handle |
|
|
247 | cache). Should be called after C<fork> and other accidents that invalidate |
|
|
248 | database handles. |
247 | |
249 | |
248 | =cut |
250 | =cut |
249 | |
251 | |
250 | sub reinitialize { |
252 | sub reinitialize { |
251 | cachesize cachesize 0; |
253 | cachesize cachesize 0; |
… | |
… | |
319 | |
321 | |
320 | =cut |
322 | =cut |
321 | |
323 | |
322 | sub dsn($) { |
324 | sub dsn($) { |
323 | my $self = shift; |
325 | my $self = shift; |
324 | $self->[1][1]; |
326 | (split /\x00/, $self->[0])[1]; |
325 | } |
327 | } |
326 | |
328 | |
327 | =back |
329 | =back |
328 | |
330 | |
329 | =cut |
331 | =cut |