ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:loadbalancer:adodbloadbalancer

ADOdbLoadBalancer

Applies To

ADOdb Load Balancer

See Also

ADOdbLoadBalancerConnection

Syntax
 class ADOdbLoadBalancer()

Description

The class ADOdbLoadBalancer is the parent class for the ADOdb Load Balancer plugin. Its primary function is to manage database connections that have been accumulated via instantiations of the ADOdbLoadBalancerConnection class, and intercept calls made through an ADOdb database connection.

Usage

$db = new ADOdbLoadBalancer;

Note that the class cannot itself create a database connection. The connection is made through the ADOdbLoadBalancer class

$db = new ADOdbLoadBalancer;
 
$db0 = new ADOdbLoadBalancerConnection($params.....)
$db->addConnection($db0);
 
$SQL = "SOME SQL Statement";
$db->execute($SQL);

The load balancer provides a drop-in replacement for the newADOConnection method, and supports the execution of all commands in the ADOdb library.

v5/reference/loadbalancer/adodbloadbalancer.txt · Last modified: 2017/04/27 01:06 by mnewnham