Berkeley DB Reference Guide: Environment
Полезная информация

Berkeley DB Reference Guide: Environment

Opening databases within the environment

Once the environment has been created, the returned handle should be passed as an argument to the db_open call. This causes the database being opened to be opened within the environment. File naming and database operations will all be done as specified for the environment, e.g., if the DB_INIT_LOCK flag was specified when the environment was created or joined, database operations will automatically perform all necessary locking operations for the application.