Database Open Flags

The following are the flags that you may want to use at database open time. Note that this list is not exhaustive — it includes only those flags likely to be of interest for introductory, single-threaded database applications. For a complete list of the flags available to you, see the Berkeley DB C API Reference Guide.

Note

To specify more than one flag on the call to DB->open(), you must bitwise inclusively OR them together:

u_int32_t open_flags = DB_CREATE | DB_EXCL;