imported Replication store from branch
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / mysql.pm
1 package DBIx::Class::Storage::DBI::mysql;
2
3 use strict;
4 use warnings;
5
6 use base qw/DBIx::Class::Storage::DBI/;
7
8 # __PACKAGE__->load_components(qw/PK::Auto/);
9
10 sub _dbh_last_insert_id {
11   my ($self, $dbh, $source, $col) = @_;
12   $dbh->{mysql_insertid};
13 }
14
15 sub sqlt_type {
16   return 'MySQL';
17 }
18
19 1;
20
21 =head1 NAME
22
23 DBIx::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
33 This class implements autoincrements for MySQL.
34
35 =head1 AUTHORS
36
37 Matt S. Trout <mst@shadowcatsystems.co.uk>
38
39 =head1 LICENSE
40
41 You may distribute this code under the same terms as Perl itself.
42
43 =cut