DBcursor->put API Ref

#include <db.h>

int DBcursor->put(DBC *DBcursor, DBT *key, DBT *data, u_int32_t flags);


Description: DBcursor->put

The DBcursor->put method stores key/data pairs into the database.

Unless otherwise specified, the DBcursor->put method returns a non-zero error value on failure and 0 on success.

If DBcursor->put fails for any reason, the state of the cursor will be unchanged. If DBcursor->put succeeds and an item is inserted into the database, the cursor is always positioned to refer to the newly inserted item.

Parameters
data flags key

Errors

The DBcursor->put method may fail and return one of the following non-zero errors:


DB_LOCK_DEADLOCK DB_LOCK_NOTGRANTED

DB_REP_HANDLE_DEAD

DB_REP_LOCKOUT

EACCES

EINVAL

EPERM


Class DBC
See Also Database Cursors and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.