June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db.h> int DB→put(DB *db, DB_TXN *txnid, DBT *key, DBT *data, u_int32_t flags);
The DB→put function stores key/data pairs in the database. The default behavior of the DB→put function is to enter the new key/data pair, replacing any previously existing key if duplicates are disallowed, or adding a duplicate data item if duplicates are allowed. If the database supports duplicates, the DB→put function adds the new data value at the end of the duplicate set. If the database supports sorted duplicates, the new data value is inserted at the correct sorted location.
If the operation is to be transaction-protected, the txnid parameter is a transaction handle returned from txn_begin; otherwise, NULL.
The flags parameter ...