Re: htdig: Different Databases for htdig

Michael J. Long (
Mon, 14 Sep 1998 18:53:42 -0400

Michael Glauche wrote:


> - is the database part somehow apart from the rest of the source ?
> (did not take a closer look yet ...)

It looks like it is fairly well designed OO code, therefore, it should
be possible without too much effort.

Use the htlib/GDBM_db class as an example. Essentially, extend
htlib/Database (let's say MySQL_db) and modify the code in
Database::getDatabaseInstance to use mySQL instead of GDBM. Maybe you
could get fancy and have it use a config variable.

Of course, you might want to change the db config settings (many config
settings contain file names) to remove the gdbm endings. Which might
require changes to, which might require changes to...



Michael J. Long

* Michael J. Long * #include "std/disclaimer.h"
*   Summa Four    * Work: mjlong@Summa4.COM
* Manchester, NH  * Play:
To unsubscribe from the htdig mailing list, send a message to containing the single word "unsubscribe" in
the body of the message.

This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:27:48 PST