fixed multiple column count distincts in SQLite and Oracle
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / SQLite.pm
CommitLineData
843f8ecd 1package DBIx::Class::Storage::DBI::SQLite;
2
3use strict;
4use warnings;
5
286f32b3 6use base qw/DBIx::Class::Storage::DBI::MultiDistinctEmulation/;
843f8ecd 7
8sub last_insert_id {
34470972 9 return $_[0]->dbh->func('last_insert_rowid');
843f8ecd 10}
11
121;
13
75d07914 14=head1 NAME
843f8ecd 15
16DBIx::Class::PK::Auto::SQLite - Automatic primary key class for SQLite
17
18=head1 SYNOPSIS
19
20 # In your table classes
77254782 21 __PACKAGE__->load_components(qw/PK::Auto Core/);
843f8ecd 22 __PACKAGE__->set_primary_key('id');
23
24=head1 DESCRIPTION
25
26This class implements autoincrements for SQLite.
27
28=head1 AUTHORS
29
30Matt S. Trout <mst@shadowcatsystems.co.uk>
31
32=head1 LICENSE
33
34You may distribute this code under the same terms as Perl itself.
35
36=cut