httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevac Marko <ma...@kevac.org>
Subject [PATCH] mod_dbd: execute SQL statements after DB connection has been established
Date Sun, 12 Apr 2009 15:36:24 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46827

This patch adds ability to the mod_dbd Apache module to execute any
SQL statements after DB connection have been established.

Patch is against httpd trunk.

Configuration example:

        DBDriver mysql
        DBDParams host=localhost,user=root,reconnect=0
        DBDPersist On
        DBDInitSQL "USE passport"
        DBDInitSQL "SET NAMES utf8"
        DBDMin 1

Order of the DBDInitSQL statements is preserved (statements will be
executed in same order they were in httpd.conf file).

Also this patch introduces optional post_connection hook, which
enables any other module to hook after connection were established.

-- 
Marko Kevac

Mime
View raw message