June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> int Db::get(DbTxn *txnid, Dbt *key, Dbt *data, u_int32_t flags);
The Db::get method retrieves key/data pairs from the database. The address and length of the data associated with the specified key are returned in the structure referenced by data.
In the presence of duplicate key values, Db::get will return the first data item for the designated key. Duplicates are sorted by insert order except where this order has been overridden by cursor operations. Retrieval of duplicates requires the use of cursor operations. See Dbc::get for details.
If the operation is to be transactionally protected, the txnid parameter is a transaction handle returned from DbEnv::txn_begin; otherwise, NULL.
The flags parameter ...