DB->exists API Ref

#include <db.h>

int DB->exists(DB *db, DB_TXN *txnid, DBT *key, u_int32_t flags);


Description: DB->exists

The DB->exists method returns if the specified key appears in the database.

The DB->exists method will return DB_NOTFOUND if the specified key is not in the database. The DB->exists method will return DB_KEYEMPTY if the database is a Queue or Recno database and the specified key exists, but was never explicitly created by the application or was later deleted. Unless otherwise specified, the DB->exists method returns a non-zero error value on failure and 0 on success.

Parameters
flags key txnid


Class DB
See Also Databases and Related Methods

APIRef

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