From: André Malo
Date: Wed, 18 May 2005 17:13:54 +0000 (+0000)
Subject: some markup cleanup, better topic section name, fix XML validation error
X-Git-Tag: 2.1.5~92
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99ab68650eedbed26c1d3d05a04b2a47045bb030;p=apache
some markup cleanup, better topic section name, fix XML validation error
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@170778 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_dbd.xml b/docs/manual/mod/mod_dbd.xml
index 817b334437..cf923e0248 100644
--- a/docs/manual/mod/mod_dbd.xml
+++ b/docs/manual/mod/mod_dbd.xml
@@ -30,7 +30,7 @@
Version 2.1 and higher
- mod_dbd manages SQL database connections using
+
mod_dbd manages SQL database connections using
apr_dbd.
It provides database connections on request to modules
requiring SQL database functions, and takes care of
@@ -38,7 +38,7 @@
for both threaded and non-threaded MPMs.
-Connection Pooling
+Connection Pooling
This module manages database connections, in a manner
optimised for the platform. On non-threaded platforms,
it provides a persistent connection in the manner of
@@ -46,13 +46,15 @@
On threaded platform, it provides an altogether more
scalable and efficient connection pool, as
described in this article at ApacheTutor.
- mod_dbd supersedes the modules presented in that article.
+ >this article at ApacheTutor. mod_dbd supersedes
+ the modules presented in that article.
Apache DBD API
- mod_dbd exports three functions for other modules to use.
- The API is as follows:
+ mod_dbd exports three functions for other modules
+ to use. The API is as follows:
+
+
typedef struct {
apr_dbd_t *handle;
apr_dbd_driver_t *driver;
@@ -78,18 +80,19 @@ AP_DECLARE(ap_dbd_t*) ap_dbd_acquire(request_rec*);
/* Also export them as optional functions for modules that prefer it */
APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_open, (apr_pool_t*, server_rec*));
APR_DECLARE_OPTIONAL_FN(void, ap_dbd_close, (server_rec*, ap_dbd_t*));
-APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
-
+APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
+
SQL Prepared Statements
- mod_dbd supports SQL prepared statements on behalf of
- modules that may wish to use them. Each prepared statement
+
mod_dbd supports SQL prepared statements on behalf
+ of modules that may wish to use them. Each prepared statement
must be assigned a name (label), and they are stored in a hash:
the prepared
field of an ap_dbd_t
.
Hash entries are of type apr_dbd_prepared_t
and can be used in any of the apr_dbd prepared statement
SQL query or select commands.
+
It is up to dbd user modules to use the prepared statements
and document what statements can be specified in httpd.conf.
@@ -112,7 +115,8 @@ APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
DBDParams
Parameters for database connection
-DBDParams param1=value1,param2=value2
+DBDParams
+param1=value1[,param2=value2]
server configvirtual host
@@ -126,7 +130,7 @@ APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
DBDPersist
Whether to use persistent connections
-DBDPersist [0|1]
+DBDPersist 0|1
server configvirtual host
@@ -135,6 +139,7 @@ APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
A new database connection is opened when requested by a client,
and closed immediately on release. This option is for debugging
and low-usage servers.
+
The default is to enable a pool of persistent connections
(or a single LAMP-style persistent connection in the case of a
non-threaded server), and should almost always be used in operation.
@@ -182,6 +187,7 @@ APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
platforms only).
+
DBDMax
Maximum number of connections
@@ -209,6 +215,4 @@ APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
-
-