Berkeley DB Reference Guide: Release 3.0: additional C++ changes
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++

### Berkeley DB Reference Guide: Upgrading Berkeley DB Applications |

### Release 3.0: additional C++ changes

The Db::set_error_model method is gone. The way to change the C++ API to return errors rather than throw exceptions is via a flag on the DbEnv or Db constructor. For example:

>     int dberr;
>     DbEnv *dbenv = new DbEnv(DB_CXX_NO_EXCEPTIONS);

creates an environment that will never throw exceptions, and method returns should be checked instead.

There are a number of smaller changes to the API that bring the C, C++ and Java APIs much closer in terms of functionality and usage. Please refer to the pages for upgrading C applications for further details.

Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.