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};
23 DBIx::Class::Storage::DBI::mysql - Automatic primary key class for MySQL
27 # In your table classes
28 __PACKAGE__->load_components(qw/PK::Auto Core/);
29 __PACKAGE__->set_primary_key('id');
33 This class implements autoincrements for MySQL.
37 Matt S. Trout <mst@shadowcatsystems.co.uk>
41 You may distribute this code under the same terms as Perl itself.