DBD::Gofer::Transport::Base - Online Linux Manual PageSection : 3pm
Updated : 2020-11-08
Source : perl v5.32.0
Note : User Contributed Perl Documentation

NAMEDBD::Gofer::Transport::Base − base class for DBD::Gofer client transports

SYNOPSIS​ my $remote_dsn = "..." ​ DBI−>connect("dbi:Gofer:transport=...;url=...;timeout=...;retry_limit=...;dsn=$remote_dsn",...) or, enable by setting the DBI_AUTOPROXY environment variable: ​ export DBI_AUTOPROXY='dbi:Gofer:transport=...;url=...' which will force all DBI connections to be made via that Gofer server.

DESCRIPTIONThis is the base class for all DBD::Gofer client transports.

ATTRIBUTESGofer transport attributes can be specified either in the attributes parameter of the connect() method call, or in the DSN string. When used in the DSN string, attribute names don't have the go_ prefix.

go_dsnThe full DBI DSN that the Gofer server should connect to on your behalf. When used in the DSN it must be the last element in the DSN string.

go_timeoutA time limit for sending a request and receiving a response. Some drivers may implement sending and receiving as separate steps, in which case (currently) the timeout applies to each separately. If a request needs to be resent then the timeout is restarted for each sending of a request and receiving of a response.

go_retry_limitThe maximum number of times an request may be retried. The default is 2.

go_retry_hookThis subroutine reference is called, if defined, for each response received where $response>err is true. The subroutine is pass three parameters: the request object, the response object, and the transport object. If it returns an undefined value then the default retry behaviour is used. See RETRY ON ERROR below. If it returns a defined but false value then the request is not resent. If it returns true value then the request is resent, so long as the number of retries does not exceed go_retry_limit.

RETRY ON ERRORThe default retry on error behaviour is: ​ − Retry if the error was due to DBI_GOFER_RANDOM. See L<DBI::Gofer::Execute>. ​ ​ − Retry if $request−>is_idempotent returns true. See L<DBI::Gofer::Request>. A retry won't be allowed if the number of previous retries has reached go_retry_limit.

TRACINGTracing of gofer requests and responses can be enabled by setting the ​DBD_GOFER_TRACE environment variable. A value of 1 gives a reasonably compact summary of each request and response. A value of 2 or more gives a detailed, and voluminous, dump. The trace is written using DBI−>trace_msg() and so is written to the default ​DBI trace output, which is usually STDERR.

METHODSThis section is currently far from complete.

response_retry_preference​ $retry = $transport−>response_retry_preference($request, $response); The response_retry_preference is called by DBD::Gofer when considering if a request should be retried after an error. Returns true (would like to retry), false (must not retry), undef (no preference). If a true value is returned in the form of a CODE ref then, if DBD::Gofer does decide to retry the request, it calls the code ref passing $retry_count, $retry_limit. Can be used for logging and/or to implement exponential backoff behaviour. Currently the called code must return using return; to allow for future extensions.

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

LICENCE AND COPYRIGHTCopyright (c) 2007−2008, 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.

SEE ALSODBD::Gofer, DBI::Gofer::Request, DBI::Gofer::Response, DBI::Gofer::Execute. and some example transports: DBD::Gofer::Transport::stream DBD::Gofer::Transport::http DBI::Gofer::Transport::mod_perl
0
Johanes Gumabo
Data Size   :   12,966 byte
man-DBD::Gofer::Transport::Base.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 167,187
Visitor ID   :     :  
Visitor IP   :   18.118.33.130   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|DBD::Gofer::Transport::Base.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|DBD::Gofer::Transport::Base.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|DBD::Gofer::Transport::Base.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|DBD::Gofer::Transport::Base.3pm|43|'br══─}─══ |'br══─}─══ )