bool removeConnection( int $connectionNumber )
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
$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.