]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Document DBD Connection Strings
authorNick Kew <niq@apache.org>
Sun, 12 Mar 2006 20:11:34 +0000 (20:11 +0000)
committerNick Kew <niq@apache.org>
Sun, 12 Mar 2006 20:11:34 +0000 (20:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@385364 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_dbd.xml

index 34c12ac7e18bd96e81a565cc1936236ebbdd01c2..abcf796ae8b53aa8a0b49fd9bd22d9333c32c3ac 100644 (file)
@@ -136,6 +136,19 @@ APR_DECLARE_OPTIONAL_FN(void, ap_dbd_prepare, (server_rec*, const char*, const c
     <p>As required by the underlying driver.  Typically this will be
     used to pass whatever cannot be defaulted amongst username,
     password, database name, hostname and port number for connection.</p>
+    <p>Connection string parameters for current drivers include:</p>
+    <dl>
+    <dt>MySQL</dt>
+    <dd>host, port, user, pass, dbname, sock</dd> 
+    <dt>Oracle</dt>
+    <dd>user, pass, dbname, server</dd> 
+    <dt>PostgreSQL</dt>
+    <dd>The connection string is passed straight through to <code>PQconnectdb</code></dd>
+    <dt>SQLite2</dt>
+    <dd>The connection string is split on a colon, and <code>part1:part2</code> is used as <code>sqlite_open(part1, atoi(part2), NULL)</code></dd>
+    <dt>SQLite3</dt>
+    <dd>The connection string is passed straight through to <code>sqlite3_open</code></dd>
+    </dl>
 </usage>
 </directivesynopsis>