New DBD drivers

Today I committed two new DBD drivers to APR: the MySQL driver apr_dbd_mysql, and the FreeTDS driver apr_dbd_freetds. Note that these are in /trunk/, and will not feature in an APR release for a while.

The MySQL driver was formerly available from WebThing, but not committed to apache because of licensing issues. But the subject was discussed again in August, and we finally decided there isn’t a licensing issue that prevents us including it, so all that remained was for me to get a round tuit. That should make life easier for packagers, such as the debian folks.

The FreeTDS driver is new, and brings support for Microsoft SQL Server and Sybase to APR and Apache. Not everything is fully functional, but it’ll suffice for typical web applications.

The FreeTDS driver also adds a new feature to DBD: Perl-like strong taint checking of user inputs to prepared statements. I’d like to think about moving that to the apr_dbd.c level, so it’s available to all drivers.

About these ads

Posted on September 5, 2007, in apache, database, mysql. Bookmark the permalink. 7 Comments.

  1. Hi, great i am trying since days to get in the mysql driver in my debian and could not get it yet. How can i get this mysql driver today !?
    Greatings Udo
    P.S.: Sorry for my english :-)

  2. Can i get that package befor from you maybe :-) !?
    Udo Weber

  3. The MySQL driver is available from webthing, as it has always been. The difference now is that it’s *also* available from Apache svn at svn.apache.org.

  4. That’s fantastic. I’ve been wrestling with apr_dbd all day, and this is much appreciated. I’m looking forward to when apache releases it in an upcoming version and debian packages it up! :-)

  5. Yes! This is great, I just got it working, with enough time for dinner. :-)

    I noticed that to setup DBDriver mysql in the apache conf file, I also had to include the DBDParams for database authentication, as it connects (and stays connected) right away.

    This is very very cool! I’m guessing that mod_rewrite will be able to hook into this driver and we’ll have real database powered virtual hosting (I’ve got it setup using perl, mysql, and memcached and it works pretty well so far).

  1. Pingback: Docunext Tech Stuff » Blog Archive » Apache 2.2 DBD Module

  2. Pingback: ODBC for Apache DBD « niq’s soapbox

Follow

Get every new post delivered to your Inbox.

Join 32 other followers

%d bloggers like this: