Berkeley DB Reference Guide:
Access Methods
PrevRefNext

Retrieving records

The DB->get method retrieves records from the database. In general, DB->get takes a key and returns the associated data from the database.

There are a few flags that you can set to customize retrieval:


DB_GET_BOTH DB_RMW DB_SET_RECNO

If the database has been configured to support duplicate records, DB->get will always return the first data item in the duplicate set.


PrevRefNext

Copyright (c) 1996,2008 Oracle. All rights reserved.