DBIx/Class/PK/Auto.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DBIx/Class/Core.pm ↑ Summary DBIx/Class/PK/Auto/DB2.pm »
1 package DBIx::Class::PK::Auto;
2  
3 #use base qw/DBIx::Class::PK/;
4 308 ▶use base qw/DBIx::Class/;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 308 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 308 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 308 1;
9  
10 =head1 NAME
11  
12 DBIx::Class::PK::Auto - Automatic primary key class
13  
14 =head1 SYNOPSIS
15  
16 use base 'DBIx::Class::Core';
17 __PACKAGE__->set_primary_key('id');
18  
19 =head1 DESCRIPTION
20  
21 This class overrides the insert method to get automatically incremented primary
22 keys.
23  
24 PK::Auto is now part of Core.
25  
26 See L<DBIx::Class::Manual::Component> for details of component interactions.
27  
28 =head1 LOGIC
29  
30 C<PK::Auto> does this by letting the database assign the primary key field and
31 fetching the assigned value afterwards.
32  
33 =head1 METHODS
34  
35 =head2 insert
36  
37 The code that was handled here is now in Row for efficiency.
38  
39 =head2 sequence
40  
41 The code that was handled here is now in ResultSource, and is being proxied to
42 Row as well.
43  
44 =head1 AUTHOR AND CONTRIBUTORS
45  
46 See L<AUTHOR|DBIx::Class/AUTHOR> and L<CONTRIBUTORS|DBIx::Class/CONTRIBUTORS> in DBIx::Class
47  
48 =head1 LICENSE
49  
50 You may distribute this code under the same terms as Perl itself.
51  
52 =cut
« DBIx/Class/Core.pm ↑ Summary DBIx/Class/PK/Auto/DB2.pm »