GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GANTRY::UTILS::DBCONNHELPER::SCRIPT (3)

.ds Aq ’

NAME

Gantry::Utils::DBConnHelper::Script - connection info and dbh cache manager for scripts

CONTENTS

SYNOPSIS



    use Gantry::Utils::DBConnHelper::Script {
        dbconn => dbi:Pg:dbname=mydb;host=127.0.0.1,
        dbuser => someuser,
        dbpass => not_saying,
    };



OR



    use Gantry::Utils::DBConnHelper::Script;

    # ... do something, usually involving figuring out your conn info

    Gantry::Utils::DBConnHelper::Script->set_conn_info( $conn_info_hash_ref );



In either case, if you need httpd authentication (say in CGI):



    Gantry::Utils::DBConnHelper::Script->set_auth_conn_info(
            $auth_conn_hash_ref
    );



DESCRIPTION

When you use a model which inherits from Gantry::Utils::CDBI or Gantry::Utils::Model etc., using this module can help with database connection management. Feel free to implement your own subclass of Gantry::Utils::DBConnHelper if you need more control. That base class specifies which methods you must implement.

Normal Connection METHODS

See Gantry::Utils::DBConnHelper for a description of the methods available here.

Note that only cgi scripts need to worry about the auth methods. Off line scripts don’t need to authenticate through apache.

Here is a list of the methods documented in Gantry::Utils::DBConnHelper.
get_auth_conn_info
get_auth_dbh
get_conn_info
get_dbh
set_auth_conn_info
set_auth_dbh
set_conn_info
set_dbh

AUTHOR

Phil Crow <philcrow2000@yahoo.com>

COPYRIGHT and LICENSE

Copyright (c) 2005-6, Tim Keefer.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GANTRY::UTILS::DBCONNHELPER::SCRIPT (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.