[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] cvs: peardoc /en/package/database/db-dataobject intro-configuration.xml
From:       "Brett Bieber" <saltybeagle () php ! net>
Date:       2008-03-31 16:14:07
Message-ID: cvssaltybeagle1206980047 () cvsserver
[Download RAW message or body]

saltybeagle		Mon Mar 31 16:14:07 2008 UTC

  Modified files:              
    /peardoc/en/package/database/db-dataobject	intro-configuration.xml 
  Log:
  Add note about optional configuration option db_driver. Add link to DSN \
configuration pages for DB and MDB2. Change typical configurations to use db_driver = \
MDB2 and quote_identifiers = true.  Doc Bug #6946 	Mysqli SSL Documentation Request
  Doc Bug #8209 	Upgrade from 1.8.3 to 1.8.4 breaks joins
  Doc Bug #13524 	User note that is a documentation problem
  
http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/db-dataobject/intro-configuration.xml?r1=1.15&r2=1.16&diff_format=u
                
Index: peardoc/en/package/database/db-dataobject/intro-configuration.xml
diff -u peardoc/en/package/database/db-dataobject/intro-configuration.xml:1.15 \
                peardoc/en/package/database/db-dataobject/intro-configuration.xml:1.16
                
--- peardoc/en/package/database/db-dataobject/intro-configuration.xml:1.15	Fri Mar 21 \
                18:30:48 2008
+++ peardoc/en/package/database/db-dataobject/intro-configuration.xml	Mon Mar 31 \
16:14:07 2008 @@ -1,4 +1,4 @@
-<!-- $Revision: 1.15 $ -->
+<!-- $Revision: 1.16 $ -->
 
   <refentry  id="package.database.db-dataobject.intro-configuration">
     <refnamediv>
@@ -23,12 +23,13 @@
 
 [DB_DataObject]
 
-database    = mysql://user:password@localhost/vending
-schema_location = /home/me/Projects/myapplication/DataObjects
-class_location  = /home/me/Projects/myapplication/DataObjects
-require_prefix  = DataObjects/
-class_prefix    = DataObjects_
-
+database          = mysql://user:password@localhost/vending
+schema_location   = /home/me/Projects/myapplication/DataObjects
+class_location    = /home/me/Projects/myapplication/DataObjects
+require_prefix    = DataObjects/
+class_prefix      = DataObjects_
+db_driver         = MDB2 #Use this if you wish to use MDB2 as the driver
+quote_identifiers = 1
         </programlisting>
       </example>
       <para>
@@ -49,11 +50,13 @@
 
 $options = &PEAR::getStaticProperty('DB_DataObject','options');
 $options = array(
-    'database'         => 'mysql://user:password@localhost/vending',
-    'schema_location'  => '/home/me/Projects/myapplication/DataObjects',
-    'class_location'   => '/home/me/Projects/myapplication/DataObjects',
-    'require_prefix'   => 'DataObjects/',
-    'class_prefix'     => 'DataObjects_',
+    'database'          => 'mysql://user:password@localhost/vending',
+    'schema_location'   => '/home/me/Projects/myapplication/DataObjects',
+    'class_location'    => '/home/me/Projects/myapplication/DataObjects',
+    'require_prefix'    => 'DataObjects/',
+    'class_prefix'      => 'DataObjects_',
+    'db_driver'         => 'MDB2', //Use this if you wish to use MDB2 as the driver
+    'quote_identifiers' => true
 );
 
 ]]>
@@ -82,7 +85,9 @@
           </term>
           <listitem>
             <para>
-             This is the default &intro.db-dsn; to connect to your database
+             This is the default data source name (DSN) to connect to your database.
+             See the <link linkend="package.database.db.intro-dsn">DSN configuration \
page for DB</link> or the +             <link \
linkend="package.database.mdb.intro-dsn">DSN configuration page for MDB2</link> for \
more details.  </para>
           </listitem>
         </varlistentry>
@@ -160,6 +165,29 @@
 
       <variablelist>
 
+        <varlistentry>
+          <term>
+            <parameter>db_driver</parameter>
+            <type>string</type>
+          </term>
+          <listitem>
+            <para>
+            default = <literal>DB</literal>, Use this configuration option to set \
the database abstraction +            driver used by DB_DataObject.
+             <example>
+                <title>using MDB2 as the driver</title>
+                <programlisting role="ini"><![CDATA[
+
+
+db_driver = MDB2
+ 
+
+
+                ]]></programlisting>
+                </example>
+             </para>
+          </listitem>
+        </varlistentry>
 
         <varlistentry>
           <term>
@@ -168,7 +196,7 @@
           </term>
           <listitem>
             <para>
-            To Hard code the key (autoincrement/nextval() for a table to a specific \
key ,overriding anything in the keys +            To Hard code the key \
(autoincrement/nextval() for a table to a specific key, overriding anything in the \
                keys
             definition of the file. Normally used on databases that are not able to \
be queried correctly for their structure  <example>
                 <title> using login as the key for the person table</title>
@@ -250,7 +278,8 @@
           </term>
           <listitem>
             <para>
-             To force the quotation of identifiers in the SQL statements, set this \
to 1  +             To force the quotation of identifiers in the SQL statements, set \
this to 1. +             This is useful if any table names use hyphens.
              <example>
                 <title>Statement Generated with and without \
quote_identifiers</title>  <programlisting role="ini"><![CDATA[
@@ -262,7 +291,6 @@
 
                 ]]></programlisting>
                 </example>
-
             
             </para>
             <para>



-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic