Shovelling PK::Auto stuff where it belongs..
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / mysql.pm
CommitLineData
843f8ecd 1package DBIx::Class::Storage::DBI::mysql;
2
3use strict;
4use warnings;
5
6use base qw/DBIx::Class::Storage::DBI/;
7
8# __PACKAGE__->load_components(qw/PK::Auto/);
9
10sub last_insert_id {
11 return $_[0]->_dbh->{mysql_insertid};
12}
13
141;
15
16=head1 NAME
17
18DBIx::Class::Storage::DBI::mysql - Automatic primary key class for MySQL
19
20=head1 SYNOPSIS
21
22 # In your table classes
23 __PACKAGE__->load_components(qw/PK::Auto Core/);
24 __PACKAGE__->set_primary_key('id');
25
26=head1 DESCRIPTION
27
28This class implements autoincrements for MySQL.
29
30=head1 AUTHORS
31
32Matt S. Trout <mst@shadowcatsystems.co.uk>
33
34=head1 LICENSE
35
36You may distribute this code under the same terms as Perl itself.
37
38=cut