v5:reference:loadbalancer:removeconnection
This is an old revision of the document!
removeConnection
Applies To
ADOdb Load Balancer
See Also
Syntax
bool removeConnection( int $connectionNumber )
Description
The method removeConnection()
permanently removes a connection from the Load Balancer connection pool.
Connection numbers are currently determined by the order in which a connection is added to the connection pool. If the connection is successfully removed (the integer value provided refers to a valid connection), the return value is true, else false
Usage
$response = $db->removeConnection(2);
If the last remaining readOnly
connection is removed, the pool will revert to a normal ADOdb connection, with all commands being processed by the write
connection. However, if the write
connection is removed, then any attempt to use commands that modify the database will fail.
v5/reference/loadbalancer/removeconnection.1492968211.txt.gz · Last modified: 2017/04/23 19:23 by mnewnham