Berkeley DB Reference Guide: Access Methods
Полезная информация

Berkeley DB Reference Guide: Access Methods

Database cursors

The DB->cursor function is the standard function for opening a cursor into a database.

Once a database cursor has been opened there are four additional standard access method operations that can be performed. Each of these operations is performed using a function that is referenced from the returned cursor handle. The four operations are as follows:

DBcursor->c_get
Retrieve a record
DBcursor->c_put
Store a record
DBcursor->c_del
Delete a record
DBcursor->c_close
Close the cursor