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 *)key.data); 
      break; 
default: 
      dbp→err(dbp, ret, "dbp→put"); 
      exit (1); 
} 

The ...

Get Berkeley DB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.