DB->get_type |
#include <db.h>DBTYPE DB->get_type(DB *db);
The DB->get_type function returns the type of the underlying access method (and file format). It returns one of DB_BTREE, DB_HASH or DB_RECNO. This value may be used to determine the type of the database after a return from DB->open with the type argument set to DB_UNKNOWN.