DB->get_env()
Prev | Chapter 5. The DB_ENV Handle | Next

## DB->get_env()

    #include <db.h>

    DB_ENV *
    DB->get_env(DB *db);

The `DB->get_env()` method returns the handle for the database environment underlying the database.

The `DB->get_env()` method may be called at any time during the life of the application.

### Class

DB

### See Also

Database and Related Methods

Prev | Up | Next
Chapter 5. The DB_ENV Handle | Home | DB_ENV->add_data_dir()