1 package DBIx::Class::Storage::DBI::mysql;
6 use base qw/DBIx::Class::Storage::DBI/;
8 # __PACKAGE__->load_components(qw/PK::Auto/);
11 return $_[0]->_dbh->{mysql_insertid};
22 DBIx::Class::Storage::DBI::mysql - Automatic primary key class for MySQL
26 # In your table classes
27 __PACKAGE__->load_components(qw/PK::Auto Core/);
28 __PACKAGE__->set_primary_key('id');
32 This class implements autoincrements for MySQL.
36 Matt S. Trout <mst@shadowcatsystems.co.uk>
40 You may distribute this code under the same terms as Perl itself.