ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:loadbalancer:setsessionvariable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:reference:loadbalancer:setsessionvariable [2017/04/17 02:17] mnewnhamv5:reference:loadbalancer:setsessionvariable [2017/04/25 01:10] (current) mnewnham
Line 3: Line 3:
 <WRAP right box> <WRAP right box>
 == Applies To == == Applies To ==
-ADOdb Load Balancer+[[v5:loadbalancer:index|ADOdb Load Balancer]]
 == Syntax == == Syntax ==
    bool setSessionVariable(    bool setSessionVariable(
Line 13: Line 13:
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The method ''setSessionVariable()'' .+The method ''setSessionVariable()'' queues up a key/value pair to be executed using the database specific //''SET SESSION''// syntax.
 --------------------------- ---------------------------
 ===== Usage ==== ===== Usage ====
Line 27: Line 27:
 ==== $parameter ==== ==== $parameter ====
 ==== $immediateExecution ==== ==== $immediateExecution ====
 +If the parameter is set to true, the method iterates through all the connections in the pool, establishes a connection to the database and executes the command. 
  
 +If set to false, then parameters are executed the first time a connection is made to the database.
 + 
v5/reference/loadbalancer/setsessionvariable.1492388256.txt.gz · Last modified: 2017/04/21 11:37 (external edit)