DB->set_append_recno API Ref

#include <db.h>

int DB->set_append_recno(DB *, int (*db_append_recno_fcn)(DB *dbp, DBT *data, db_recno_t recno));


Description: DB->set_append_recno

When using the DB_APPEND option of the DB->put method, it may be useful to modify the stored data based on the generated key. If a callback function is specified using the DB->set_append_recno method, it will be called after the record number has been selected, but before the data has been stored.

The DB->set_append_recno method configures operations performed using the specified DB handle, not all operations performed on the underlying database.

The DB->set_append_recno method may not be called after the DB->open method is called.

The DB->set_append_recno method returns a non-zero error value on failure and 0 on success.

Parameters
db_append_recno_fcn

Errors

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


EINVAL


Class DB
See Also Databases and Related Methods

APIRef

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