| DBIx-Connector documentation | Contained in the DBIx-Connector distribution. |
DBIx::Connector::Driver::mysql - MySQL-specific connection interface
This subclass of DBIx::Connector::Driver provides MySQL-specific implementations of the following methods:
savepointreleaserollback_toIt also modifies the connection attributes as follows:
mysql_auto_reconnectWill always be set to false. This is to prevent MySQL's auto-reconnection
feature from interfering with DBIx::Connector's auto-reconnection
functionality in fixup mode.
This module was written and is maintained by:
It is based on code written by:
Copyright (c) 2009-2010 David E. Wheeler. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| DBIx-Connector documentation | Contained in the DBIx-Connector distribution. |
package DBIx::Connector::Driver::mysql; use strict; use warnings; use base 'DBIx::Connector::Driver'; our $VERSION = '0.45'; sub _connect { my ($self, $dbh) = @_; $dbh->{mysql_auto_reconnect} = 0; $dbh; } sub savepoint { my ($self, $dbh, $name) = @_; $dbh->do("SAVEPOINT $name"); } sub release { my ($self, $dbh, $name) = @_; $dbh->do("RELEASE SAVEPOINT $name"); } sub rollback_to { my ($self, $dbh, $name) = @_; $dbh->do("ROLLBACK TO SAVEPOINT $name"); } 1; __END__