pod fixes
[dbsrgits/DBIx-Class-Historic.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
d4f16b21 10sub _dbh_last_insert_id {
11 my ($self, $dbh, $source, $col) = @_;
12 $dbh->{mysql_insertid};
843f8ecd 13}
14
e8d293df 15sub sqlt_type {
16 return 'MySQL';
17}
18
843f8ecd 191;
20
75d07914 21=head1 NAME
843f8ecd 22
23DBIx::Class::Storage::DBI::mysql - Automatic primary key class for MySQL
24
25=head1 SYNOPSIS
26
27 # In your table classes
28 __PACKAGE__->load_components(qw/PK::Auto Core/);
29 __PACKAGE__->set_primary_key('id');
30
31=head1 DESCRIPTION
32
33This class implements autoincrements for MySQL.
34
35=head1 AUTHORS
36
37Matt S. Trout <mst@shadowcatsystems.co.uk>
38
39=head1 LICENSE
40
41You may distribute this code under the same terms as Perl itself.
42
43=cut