1 package DBIx::Class::Storage::DBI::mysql;
6 use base qw/DBIx::Class::Storage::DBI/;
8 # __PACKAGE__->load_components(qw/PK::Auto/);
10 sub _dbh_last_insert_id {
11 my ($self, $dbh, $source, $col) = @_;
12 $dbh->{mysql_insertid};
20 my ($self, $name) = @_;
22 $self->dbh->do("SAVEPOINT $name");
26 my ($self, $name) = @_;
28 $self->dbh->do("RELEASE SAVEPOINT $name");
32 my ($self, $name) = @_;
34 $self->dbh->do("ROLLBACK TO SAVEPOINT $name")
41 DBIx::Class::Storage::DBI::mysql - Automatic primary key class for MySQL
45 # In your table classes
46 __PACKAGE__->load_components(qw/PK::Auto Core/);
47 __PACKAGE__->set_primary_key('id');
51 This class implements autoincrements for MySQL.
55 Matt S. Trout <mst@shadowcatsystems.co.uk>
59 You may distribute this code under the same terms as Perl itself.