v5:reference:loadbalancer:getconnection
This is an old revision of the document!
getConnection
Applies To
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 already executed at least one statement against the load balancer connection
Usage
v5/reference/loadbalancer/getconnection.1494455756.txt.gz · Last modified: by mnewnham