<code>regexec</code> and so on can be replaced by calls to
<code>ap_regcomp</code>, <code>ap_regcomp</code>.</dd>
+ <dt>DBD Framework (SQL Database API)</dt>
+
+ <dd><p>With Apache 1.x and 2.0, modules requiring an SQL backend
+ had to take responsibility for managing it themselves. Apart
+ from reinventing the wheel, this can be very inefficient, for
+ example when several modules each maintain their own connections.</p>
+ <p>Apache 2.1 and up provides the <code>ap_dbd</code> API for
+ managing database connections (including optimised strategies
+ for threaded and unthreaded MPMs), while APR 1.2 and up provides
+ the <code>apr_dbd</code> API for interacting with the database.</p>
+ <p>New modules SHOULD now use these APIs for all SQL database
+ operations. Existing applications SHOULD be upgraded to use it
+ where feasible, either transparently or as a recommended option
+ to their users.</p></dd>
</dl>
</div></div>
<div class="bottomlang">
</div><div id="footer">
<p class="apache">Copyright 1995-2005 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="./mod/">Modules</a> | <a href="./mod/directives.html">Directives</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">Glossary</a> | <a href="./sitemap.html">Sitemap</a></p></div>
-</body></html>
\ No newline at end of file
+</body></html>
<code>regexec</code> and so on can be replaced by calls to
<code>ap_regcomp</code>, <code>ap_regcomp</code>.</dd>
+ <dt>DBD Framework (SQL Database API)</dt>
+
+ <dd><p>With Apache 1.x and 2.0, modules requiring an SQL backend
+ had to take responsibility for managing it themselves. Apart
+ from reinventing the wheel, this can be very inefficient, for
+ example when several modules each maintain their own connections.</p>
+ <p>Apache 2.1 and up provides the <code>ap_dbd</code> API for
+ managing database connections (including optimised strategies
+ for threaded and unthreaded MPMs), while APR 1.2 and up provides
+ the <code>apr_dbd</code> API for interacting with the database.</p>
+ <p>New modules SHOULD now use these APIs for all SQL database
+ operations. Existing applications SHOULD be upgraded to use it
+ where feasible, either transparently or as a recommended option
+ to their users.</p></dd>
</dl>
</section>
</manualpage>
svr_cfg *svr = (svr_cfg*) ap_get_module_config
(cmd->server->module_config, &dbd_module);
- switch ((int) cmd->info) {
+ switch ((long) cmd->info) {
case cmd_name:
svr->name = val;
/* loading the driver involves once-only dlloading that is