Commit | Line | Data |
843f8ecd |
1 | package DBIx::Class::Storage::DBI::SQLite; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
286f32b3 |
6 | use base qw/DBIx::Class::Storage::DBI::MultiDistinctEmulation/; |
843f8ecd |
7 | |
8 | sub last_insert_id { |
34470972 |
9 | return $_[0]->dbh->func('last_insert_rowid'); |
843f8ecd |
10 | } |
11 | |
12 | 1; |
13 | |
75d07914 |
14 | =head1 NAME |
843f8ecd |
15 | |
16 | DBIx::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 | |
26 | This class implements autoincrements for SQLite. |
27 | |
28 | =head1 AUTHORS |
29 | |
30 | Matt S. Trout <mst@shadowcatsystems.co.uk> |
31 | |
32 | =head1 LICENSE |
33 | |
34 | You may distribute this code under the same terms as Perl itself. |
35 | |
36 | =cut |