v5:reference:loadbalancer:removeconnection
removeConnection
Applies To
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.txt · Last modified: 2017/04/25 01:09 by mnewnham