Chapter 6. Berkeley DB Architecture

The previous chapters in this Reference Guide described applications that use the Berkeley DB Access Methods for fast data storage and retrieval. The applications described in the following chapters are similar in nature to the Access Methods applications, but they are also threaded and/or recoverable in the face of application or system failure.

Application code that uses only the Berkeley DB Access Methods might appear as follows:

switch (ret = dbp→put(dbp, NULL, &key, &data, 0)) {
case 0: 
      printf("db: %s: key stored.\n", (char *); 
      dbp→err(dbp, ret, "dbp→put"); 
      exit (1); 

The ...

Get Berkeley DB now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.