Add an 'on_disconnect_do' argument to
authorTom Hukins <tom@eborcom.com>
Wed, 1 Aug 2007 11:27:38 +0000 (11:27 +0000)
committerTom Hukins <tom@eborcom.com>
Wed, 1 Aug 2007 11:27:38 +0000 (11:27 +0000)
commit579ca3f74419c0167a4659d5df9e875cd47ba3b7
tree709b5e16a1b017bdc45d2bcf90bd31fdbddbe12a
parent9f5cdfb0203436b910f0e7c75e6ac4fda143a19d
Add an 'on_disconnect_do' argument to
DBIx::Class::Storage::DBI::connect_info that, on disconnection, do what
'on_connect_do' does on connection.  Currently, this only works if the
code explicitly calls disconnect() on the Storage object.

While I'm here, make both 'on_connect_do' and 'on_disconnect_do' accept
code references as well as strings containing SQL statements.

Finally, remove code to call compose_connection() from DBICTest.pm that
never gets called any more.
lib/DBIx/Class/Storage/DBI.pm
t/92storage_on_connect_do.t [new file with mode: 0644]
t/lib/DBICTest.pm