File Coverage

blib/lib/DBD/Gofer/Policy/pedantic.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
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 53     53   15742 use strict;
  53         100  
  53         1490  
11 53     53   256 use warnings;
  53         94  
  53         2519  
12              
13             our $VERSION = "0.010088";
14              
15 53     53   288 use base qw(DBD::Gofer::Policy::Base);
  53         124  
  53         15067  
16              
17             # the 'pedantic' policy is the same as the Base policy
18              
19             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 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 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
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.
51              
52             =cut
53