Berkeley DB Reference Guide: Release 3.0: the DbEnv class for C++ and Java
Berkeley DB Reference Guide:
Upgrading Berkeley DB Applications
Release 3.0: the DbEnv class for C++ and Java
The DbEnv::appinit() method and two constructors for the DbEnv class are
gone. There is now a single way to create and initialize the environment.
The way to create an environment is to use the new DbEnv constructor with
one argument. After this call, the DbEnv can be configured with various
set_XXX methods. Finally, a call to DbEnv::open is made to initialize
the environment.
Here's a C++ example creating a Berkeley DB environment using the 2.X interface
In the Berkeley DB 2.X release, DbEnv had accessors to obtain "managers" of type
DbTxnMgr, DbMpool, DbLog, DbTxnMgr. If you used any of these managers,
all their methods are now found directly in the DbEnv class.