DB->cursor API Ref

#include <db.h>

int DB->cursor(DB *db, DB_TXN *txnid, DBC **cursorp, u_int32_t flags);


Description: DB->cursor

The DB->cursor method returns a created database cursor.

Cursors may span threads, but only serially, that is, the application must serialize access to the cursor handle.

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

Parameters
cursorp flags txnid

Errors

The DB->cursor 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.