O'Reilly logo

Berkeley DB by Sleepycat™ Software, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required