*I:Berkeley DB Reference Guide: Access Methods[P4

Berkeley DB Reference Guide: Access Methods



%

Storing records



_The DB->put function is the standard function for storing@records into the database. In general, the put function takes a5key and stores the associated data into the database.

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

Œ

DB_APPEND
Simply append the data to the end of the database, treating the databaseMmuch like a simple log. This flag is only valid for the Recno access method.š

DB_NOOVERWRITE
Only store the data item if the key does not already appear in the database.


EIf the database has been configured to support duplicate records, thedDB->put function will add the new data value at the end of theHduplicate set. If the database supports sorted duplicates, the new data1value is inserted at the correct sorted location.

EAHÿÿ