Berkeley DB Reference Guide: Storing records with a cursor
Berkeley DB Reference Guide:
Access Methods
Storing records with a cursor
The DBcursor->c_put function is the standard interface for storing records into
the database with a cursor. In general, DBcursor->c_put takes a key and
inserts the associated data into the database, at a location controlled
by a specified flag.
There are several flags that you can set to customize storage: