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

DBcursor→c_get

						#include <db.h>
						int
						DBcursor→c_get(DBC *cursor,
						DBT *key, DBT *data, u_int32_t flags);
					

Description

The DBcursor→c_get function retrieves key/data pairs from the database. The address and length of the key are returned in the object referenced by key (except for the case of the DB_SET flag, in which the key object is unchanged), and the address and length of the data are returned in the object referenced by data.

Modifications to the database during a sequential scan will be reflected in the scan; that is, records inserted behind a cursor will not be returned while records inserted in front of a cursor will be returned.

In Queue and Recno databases, missing entries (that is, entries that were never explicitly created or that ...

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