berkdb2csv

What is berkdb2csv?

berkdb2csv is a simple tool for exporting data from a Berkley db4 database to a csv file to help migrating to another database. Its only really purpose is save somebody from having to learn anything about programming Berkley databases.

You'll need to know the format of your database and have some minor C programming skills to use berkdb2csv.

Downloads

License

This code is licensed under the GNU GPL

Using berkdb2csv

To use berkdb2csv, the files customdb.c and customdb.h need modifying.

customdb.h contains the description of your database - the struct needs to be identical to the one used to create the database originally. You should also set DBNAME to the path to your database.

customdb.c contains the function used to print the database information. You should set the printf format and arguments to match the database structure you defined in customdb.h.

To compile, simply run "make". You may need to modify the Makefile if you aren't using gcc or your libdb is in a non-standard location.

To use:

./berkdb2csv > example.csv