Db::join API Ref

#include <db_cxx.h>

int Db::join(Dbc **curslist, Dbc **dbcp, u_int32_t flags);


Description: Db::join

The Db::join method creates a specialized join cursor for use in performing equality or natural joins on secondary indices. For information on how to organize your data to use this functionality, see Equality join.

The Db::join method method is called using the Db handle of the primary database.

The join cursor supports only the Dbc::get and dbc_close cursor functions:


Dbc::get Dbc::close

The Db::join method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters
curslist dbcp flags

Errors

The Db::join method may fail and throw DbException, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:


DB_REP_HANDLE_DEAD

DB_REP_LOCKOUT

DB_SECONDARY_BAD

EINVAL


Class Db
See Also Databases and Related Methods

APIRef

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