info > DBD::Gofer::Policy::Base

DBD::Gofer::Policy::Base(3pm)

📋 NAME

DBD::Gofer::Policy::Base — Base class for DBD::Gofer policies

🚀 Quick Reference

Use CaseCommandDescription
Connect with default policy$dbh = DBI->connect("dbi:Gofer:transport=...", ...)Uses the classic policy by default
Connect with explicit policy$dbh = DBI->connect("dbi:Gofer:transport=...;policy=pedantic", ...)Specify a policy class (pedantic, classic, or rush)
Override policy item per-call$dbh->do("...", undef, go_<policy_name> => value)Pass go_<policy_name> attribute to fine-tune behaviour
Create custom policy subclasspackage MyPolicy; use base qw(DBD::Gofer::Policy::classic);Subclass existing policy to override methods

📖 SYNOPSIS

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

📝 DESCRIPTION

DBD::Gofer can be configured via a policy mechanism that allows you to fine-tune the number of round-trips to the Gofer server. The policies are grouped into classes (which may be subclassed) and referenced by the name of the class.

The DBD::Gofer::Policy::Base class is the base class for all the policy classes and describes all the individual policy items.

Note: The Base policy is not used directly. You should use a policy class derived from it.

🏷️ POLICY CLASSES

Three policy classes are supplied with DBD::Gofer:

💡 Tip: Generally the default classic policy is fine. When first testing an existing application with Gofer, start with the pedantic policy first, then switch to classic or a custom policy for final testing.

⚙️ POLICY ITEMS

These are temporary docs: See the source code for the 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.

See the source code to this module for more details.

🛠️ POLICY CUSTOMIZATION

⚠️ Caveat: This area of DBD::Gofer is subject to change.

There are three ways to customize policies:

👤 AUTHOR

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

📜 LICENCE AND COPYRIGHT

Copyright (c) 2007, Tim Bunce, Ireland. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.


perl v5.34.0 — 2026-06-22 — DBD::Gofer::Policy::Base(3pm)

DBD::Gofer::Policy::Base
DBD::Gofer::Policy::Base(3pm) 📋 NAME 🚀 Quick Reference 📖 SYNOPSIS 📝 DESCRIPTION 🏷️ POLICY CLASSES ⚙️ POLICY ITEMS 🛠️ POLICY CUSTOMIZATION 👤 AUTHOR 📜 LICENCE AND COPYRIGHT

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-09 10:00 @2600:1f28:365:80b0:50b3:453e:ff52:20f7
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format