|Did you know ...||Search Documentation:|
environment(+Environment)option. If bdb_init/1 is called, it must be called before the first call to bdb_open/4 that uses the default environment. If bdb_init/1 is not called, the default environment can only handle plain files and does not support multiple threads, locking, crash recovery, etc.
Initializing a BDB environment always requires the
option. If the environment contains no databases, the argument
create(true) must be supplied as well.
The currently supported options are listed below. The name of
the boolean options are derived from the DB flags by dropping
the =DB_= prefix and using lowercase, e.g.
init_lock. For details, please refer to the DB manual.
true, create any underlying file as required. By default, no new files are created. This option should be set for prograns that create new databases.
DB_INIT_LOCK). Implied if transactions are used.
DB_INIT_LOG). Logging enables recovery of databases in case of system failure. Normally it is used in combination with transactions.
mp_sizeoption sets the memory-pool used for caching, while the
mp_mmapsizecontrols the maximum size of a DB file mapped entirely into memory.
berkeley_db_svc. Optionally additional options may be specified: