ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:loadbalancer:reference

This is an old revision of the document!


Load Balancer Reference Manual


Variables

$enable_sticky_sessions Defines whether commands executed in the current session should be pinned to a specific connection

Methods

setSessionInitSql Defines an SQL statement that will always be initialized whenever a load balancer connection is established
addConnection() Adds a new connection to the list of available servers
removeConnection() Removes a connection from the list of available servers
getLoadBalancedConnection Returns the id of an appropriate connection for a requested type
getConnection Returns the ADODB connection object by database type and ensures that its connected and the session variables are executed
setSessionVariable Allow setting session variables that are maintained across connections
clusterExecute() Executes the same SQL QUERY on the entire cluster of connections
isReadOnlyQuery() Determines if a SQL query is read-only or not
execute() shortcut to ADOdb execute
v5/loadbalancer/reference.1492969488.txt.gz · Last modified: 2017/04/23 19:44 by mnewnham