Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move mention of DBI Callbacks attribute and give credit for the patch.

  • Loading branch information...
commit 79c18bf456cbf32d5e969aa34ac25fb0a30d3832 1 parent 6e0daca
@theory authored
Showing with 8 additions and 4 deletions.
  1. +3 −0  Changes
  2. +5 −4 lib/DBIx/Connector.pm
View
3  Changes
@@ -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
View
9 lib/DBIx/Connector.pm
@@ -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:
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.