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


Usage

 
v5/reference/loadbalancer/getconnection.1493332700.txt.gz · Last modified: 2017/04/28 00:38 by mnewnham