blib/lib/DBIx/Connector/Driver/Pg.pm

filter: Statementstmt 64.7% 11 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 100% 3 / 3 totaltotal 65.3% 17 / 26 CC 1 SCAR 4.1
CC
1
Cov
65%
savepoint
2.0
release
2.0
rollback_to
2.0
CRAP 1.5
« blib/lib/DBIx/Connector/Driver.pm ↑ Summary blib/lib/DBIx/Connector/Driver/MSSQL.pm »
1 package DBIx::Connector::Driver::Pg;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use base 'DBIx::Connector::Driver';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 our $VERSION = '0.55';
7  
8 sub savepoint {
9 0 ▶ my ($self, $dbh, $name) = @_;
Subroutine savepoint: not called CC=1 SCAR=6.9
Pod documented
10 0 $dbh->pg_savepoint($name);
11 }
12  
13 sub release {
14 0 ▶ my ($self, $dbh, $name) = @_;
Subroutine release: not called CC=1 SCAR=6.9
Pod documented
15 0 $dbh->pg_release($name);
16 }
17  
18 sub rollback_to {
19 0 ▶ my ($self, $dbh, $name) = @_;
Subroutine rollback_to: not called CC=1 SCAR=6.9
Pod documented
20 0 $dbh->pg_rollback_to($name);
21 }
22  
23 2 1;
24 __END__
25  
26 =head1 Name
27  
28 DBIx::Connector::Driver::Pg - PostgreSQL-specific connection interface
29  
30 =head1 Description
31  
32 This subclass of L<DBIx::Connector::Driver|DBIx::Connector::Driver> provides
33 PostgreSQL-specific implementations of the following methods:
34  
35 =over
36  
37 =item C<savepoint>
38  
39 =item C<release>
40  
41 =item C<rollback_to>
42  
43 B<NOTE:> Due to L<a bug|https://rt.cpan.org/Ticket/Display.html?id=100648> in
44 the implementation of DBD::Pg's C<ping> method, DBD::Pg 3.5.0 or later is
45 strongly recommended.
46  
47 =back
48  
49 =head1 Authors
50  
51 This module was written and is maintained by:
52  
53 =over
54  
55 =item David E. Wheeler <david@kineticode.com>
56  
57 =back
58  
59 It is based on code written by:
60  
61 =over
62  
63 =item Matt S. Trout <mst@shadowcatsystems.co.uk>
64  
65 =item Peter Rabbitson <rabbit+dbic@rabbit.us>
66  
67 =back
68  
69 =head1 Copyright and License
70  
71 Copyright (c) 2009-2013 David E. Wheeler. Some Rights Reserved.
72  
73 This module is free software; you can redistribute it and/or modify it under
74 the same terms as Perl itself.
75  
76 =cut
« blib/lib/DBIx/Connector/Driver.pm ↑ Summary blib/lib/DBIx/Connector/Driver/MSSQL.pm »