v5:reference:loadbalancer:addconnection
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
v5:reference:loadbalancer:addconnection [2017/04/20 01:25] – mnewnham | v5:reference:loadbalancer:addconnection [2017/04/21 11:50] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
ADOdb Load Balancer | ADOdb Load Balancer | ||
== See Also == | == See Also == | ||
- | [[v5: | + | [[v5: |
== Syntax == | == Syntax == | ||
bool addConnection( | bool addConnection( | ||
Line 13: | Line 13: | ||
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | The method '' | + | The method '' |
+ | |||
+ | Note that a connection to the database is not established until the first command is executed. | ||
+ | |||
+ | The method returns true if the connection is successfully added to the pool, or false if an error occurs. | ||
--------------------------- | --------------------------- | ||
===== Usage ==== | ===== Usage ==== | ||
<code php> | <code php> | ||
- | $db = new ADOdbLoadBalancer(); | + | $db = new ADOdbLoadBalancer; |
$driver = ' | $driver = ' |
v5/reference/loadbalancer/addconnection.txt · Last modified: 2017/04/25 01:08 by mnewnham