Berkeley DB: DbEnv
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btr ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++

# DbEnv

`

###

    #include <db_cxx.h>

    DbEnv::DbEnv(const char *db_home, char *const *db_config, u_int32_t flags);
    DbEnv::DbEnv();
    DbEnv::~DbEnv();

# Description

This manual page describes the specific details of the DbEnv class. The DbEnv class provides simple access to an underlying data structure, whose elements can be examined or changed using the set_ or get_ methods. The manual pages sometimes refer to these accesses using the underlying name, e.g., simply lorder instead of get_lorder and set_lorder.

The constructors set all elements of the underlying structure to zero. The constructor with three arguments has the effect of calling DbEnv::appinit immediately to initialize the application with default parameters. To delay the initialization, use the default constructor. The various set_ methods can then be used to initialize the DbEnv, and finally, a call to DbEnv::appinit should be made to initialize Berkeley DB.

Once the Berkeley DB environment has been initialized by a call to DbEnv::appinit no set methods other than DbEnv::set_errpfx should be called.

# Class

DbEnv

# See Also

DbEnv::appinit, DbEnv::appexit, DbEnv::version, DbEnv::get_lg_info, DbEnv::get_lk_info, DbEnv::get_mp_info, DbEnv::get_tx_info, dbenv_set_data_dir, DbEnv::set_errcall, DbEnv::set_errfile, DbEnv::set_error_model, DbEnv::set_error_stream, DbEnv::set_errpfx, DbEnv::set_lg_max, DbEnv::set_lk_conflicts, DbEnv::set_lk_detect, DbEnv::set_lk_modes, DbEnv::set_lorder, DbEnv::set_mp_mmapsize, DbEnv::set_mp_size, DbEnv::set_tx_max, DbEnv::set_tx_recover and DbEnv::set_verbose.`