ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:loadbalancer:getconnection

This is an old revision of the document!


getConnection

Applies To

ADOdb Load Balancer

Syntax
 obj getConnection(
       optional string $connectionType = 'write',
       optional bool $pinConnection = null
       
       )

Description

The method getConnection() gets a connection of the requested type (write/readonly) and ensures that the connection is established and all initialization is complete.

The returned object is an ADOdb connection object, which can be accessed in the normal way


To ensure the accuracy of the response, you should have executed at least one statement against the load balancer connection

Usage

 
v5/reference/loadbalancer/getconnection.1494455727.txt.gz · Last modified: by mnewnham