DBcursor->count API Ref

#include <db.h>

int DBcursor->count(DBC *DBcursor, db_recno_t *countp, u_int32_t flags);


Description: DBcursor->count

The DBcursor->count method returns a count of the number of data items for the key to which the cursor refers.

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

Parameters
countp flags

Errors

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


DB_REP_HANDLE_DEAD

DB_REP_LOCKOUT

EINVAL


Class DBC
See Also Database Cursors and Related Methods

APIRef

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