cvs: peardoc /en/package/database/mdb2 intro-connect.xml
| From: | Lukas Smith | Date: | Wed, 15 Nov 2006 13:25:35 +0000 |
| Subject: | cvs: peardoc /en/package/database/mdb2 intro-connect.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8803@lists.php.net to get a copy of this message | ||
lsmith Wed Nov 15 13:25:35 2006 UTC
Modified files:
/peardoc/en/package/database/mdb2 intro-connect.xml
Log:
- expanded information on constructor pattern differences
http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/mdb2/intro-connect.xml?r1=1.13&r2=1.14&diff_format=u
Index: peardoc/en/package/database/mdb2/intro-connect.xml
diff -u peardoc/en/package/database/mdb2/intro-connect.xml:1.13
peardoc/en/package/database/mdb2/intro-connect.xml:1.14
--- peardoc/en/package/database/mdb2/intro-connect.xml:1.13 Mon Oct 30 18:13:24 2006
+++ peardoc/en/package/database/mdb2/intro-connect.xml Wed Nov 15 13:25:34 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
<refentry id="package.database.mdb2.intro-connect">
<refnamediv>
@@ -31,7 +31,10 @@
<entry>Efficient</entry>
<entry>
Will instantiate a new <classname>MDB2_Driver_Common</classname>
- instance, but will not connect to the database until required.
+ instance, but will not connect to the database until required. This
+ will delay making the actual connection. This is called lazy connecting.
+ Using this makes sense if it is possible that due to caching inside the
+ application no connection will ever need to be established.
</entry>
</row>
<row>
@@ -42,7 +45,8 @@
<entry>Eager</entry>
<entry>
Will instantiate a new <classname>MDB2_Driver_Common</classname>
- instance, and will establish a database connection immediately.
+ instance, and will establish a database connection immediately. This
+ way any connection issues will immidiatly raise an error.
</entry>
</row>
<row>
@@ -54,10 +58,10 @@
<entry>Available</entry>
<entry>
Returns a <classname>MDB2_Driver_Common</classname> instance. A new
- <classname>MDB2_Driver_Common</classname> object is only
- created once, subsequent calls to singleton will return a reference to
- the existing object. This method is preferred over declaring your
- database object as a global.
+ <classname>MDB2_Driver_Common</classname> object is only created once
+ using <function>factory</function>, subsequent calls to singleton will
+ return a reference to the existing object. This method is preferred over
+ declaring your database object as a global.
</entry>
</row>
</tbody>