blib/lib/DBD/Gofer/Policy/pedantic.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/DBD/Gofer/Policy/classic.pm ↑ Summary blib/lib/DBD/Gofer/Policy/rush.pm »
1 package DBD::Gofer::Policy::pedantic;
2  
3 # $Id: pedantic.pm 10087 2007-10-16 12:42:37Z Tim $
4 #
5 # Copyright (c) 2007, Tim Bunce, Ireland
6 #
7 # You may distribute under the terms of either the GNU General Public
8 # License or the Artistic License, as specified in the Perl README file.
9  
10 60 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 60 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 60 our $VERSION = "0.010088";
14  
15 60 ▶use base qw(DBD::Gofer::Policy::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 # the 'pedantic' policy is the same as the Base policy
18  
19 60 1;
20  
21 =head1 NAME
22  
23 DBD::Gofer::Policy::pedantic - The 'pedantic' policy for DBD::Gofer
24  
25 =head1 SYNOPSIS
26  
27 $dbh = DBI->connect("dbi:Gofer:transport=...;policy=pedantic", ...)
28  
29 =head1 DESCRIPTION
30  
31 The C<pedantic> policy tries to be as transparent as possible. To do this it
32 makes round-trips to the server for almost every DBI method call.
33  
34 This is the best policy to use when first testing existing code with Gofer.
35 Once it's working well you should consider moving to the C<classic> policy or defining your own policy class.
36  
37 Temporary docs: See the source code for list of policies and their defaults.
38  
39 In a future version the policies and their defaults will be defined in the pod and parsed out at load-time.
40  
41 =head1 AUTHOR
42  
43 Tim Bunce, L<http://www.tim.bunce.name>
44  
45 =head1 LICENCE AND COPYRIGHT
46  
47 Copyright (c) 2007, Tim Bunce, Ireland. All rights reserved.
48  
49 This module is free software; you can redistribute it and/or
50 modify it under the same terms as Perl itself. See L<perlartistic>.
51  
52 =cut
53  
« blib/lib/DBD/Gofer/Policy/classic.pm ↑ Summary blib/lib/DBD/Gofer/Policy/rush.pm »