Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move mention of DBI Callbacks attribute and give credit for the patch.
  • Loading branch information
theory committed May 29, 2012
1 parent 6e0daca commit 79c18bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Changes
Expand Up @@ -11,6 +11,9 @@ Revision history for Perl extension DBIx::Connector.
in v0.50. Thanks to Randy Stauner for the patch!
- Eliminated more "Use of qw(...) as parentheses" syntax errors in tests
when running on Perl 5.17.
- Add mention of DBI Callbacks parameter to the docs, as folks often ask
for this functionality, not realizing that the DBI already provides
it. Randy Stauner.

0.51 2012-02-18T00:14:48Z
- Fixed internal exception handling on Perls less than 5.14, where some
Expand Down
9 changes: 5 additions & 4 deletions lib/DBIx/Connector.pm
Expand Up @@ -629,6 +629,11 @@ In addition, explicitly setting C<AutoCommit> to true is strongly recommended
if you plan to use L<C<txn()>|/"txn"> or L<C<svp()>|/"svp">, as otherwise you
won't get the transactional scoping behavior of those two methods.
If you would like to execute custom logic each time a new connection to the
database is made you can pass a sub as the C<connected> key to the
C<Callbacks> parameter. See L<DBI/Callbacks> for usage and other available
callbacks.
Other attributes may be modified by individual drivers. See the documentation
for the drivers for details:
Expand All @@ -646,10 +651,6 @@ for the drivers for details:
=back
If you would like to execute custom logic each time a new connection to the
database is made you can pass a sub as the C<connected> key to the C<Callbacks>
parameter. See L<DBI/Callbacks> for usage and other available callbacks.
=head2 Class Method
=head3 C<connect>
Expand Down

0 comments on commit 79c18bf

Please sign in to comment.