DBD::Gofer::Policy::pedantic - The 'pedantic' policy for DBD::Gofer


DBI documentation Contained in the DBI distribution.

Index


Code Index:

NAME

Top

DBD::Gofer::Policy::pedantic - The 'pedantic' policy for DBD::Gofer

SYNOPSIS

Top

  $dbh = DBI->connect("dbi:Gofer:transport=...;policy=pedantic", ...)

DESCRIPTION

Top

The pedantic policy tries to be as transparent as possible. To do this it makes round-trips to the server for almost every DBI method call.

This is the best policy to use when first testing existing code with Gofer. Once it's working well you should consider moving to the classic policy or defining your own policy class.

Temporary docs: See the source code for list of policies and their defaults.

In a future version the policies and their defaults will be defined in the pod and parsed out at load-time.

AUTHOR

Top

Tim Bunce, http://www.tim.bunce.name

LICENCE AND COPYRIGHT

Top


DBI documentation Contained in the DBI distribution.

package DBD::Gofer::Policy::pedantic;

#   $Id: pedantic.pm 10087 2007-10-16 12:42:37Z timbo $
#
#   Copyright (c) 2007, Tim Bunce, Ireland
#
#   You may distribute under the terms of either the GNU General Public
#   License or the Artistic License, as specified in the Perl README file.

use strict;
use warnings;

our $VERSION = sprintf("0.%06d", q$Revision: 10087 $ =~ /(\d+)/o);

use base qw(DBD::Gofer::Policy::Base);

# the 'pedantic' policy is the same as the Base policy

1;