ap / DBIx-Connector

Fast, safe DBI connection and transaction management
https://metacpan.org/release/DBIx-Connector
39 stars 15 forks source link

typos in DBIx::Connector.pm docs #22

Closed moregan closed 12 years ago

moregan commented 12 years ago

Of course, if you don't need to do an work

_disonnect_ondestory()

moregan commented 12 years ago

diff --git a/lib/DBIx/Connector.pm b/lib/DBIx/Connector.pm index c1a87c2..3f012c6 100644 --- a/lib/DBIx/Connector.pm +++ b/lib/DBIx/Connector.pm @@ -895,7 +895,7 @@ An example: return $conn->dbh; }

-Of course, if you don't need to do an work with the database handle before +Of course, if you don't need to do any work with the database handle before returning it to your caller, you can just use C<connect()>:

sub database_handle { @@ -906,7 +906,7 @@ returning it to your caller, you can just use C<connect()>:

$conn->disconnect;

-Disconnects from the database. Unless C<disonnect_on_destory()> has been +Disconnects from the database. Unless C<disconnect_on_destory()> has been passed a false value, DBIx::Connector uses this method internally in its C<DESTROY> method to make sure that things are kept tidy.

theory commented 12 years ago

Even better: connect_on_destroy(). :-) Thanks for the patch!