Returns information about the index associated with a cursor.
MCO_RET mco_uda_cursor_info( /*IN*/ mco_trans_h t,
/*IN*/ const mco_metadict_header_t * metadict,
/*IN*/ mco_cursor_t * cursor,
/*OUT*/ unsigned short dict_no,
/*OUT*/ unsigned short struct_no,
/*OUT*/ unsigned short index_no );
t
metadict
cursor
dict_no
struct_no
index_no
Returns information about the index associated with the cursor.
MCO_S_OK
dict_no. (Possibly the database is not registered; see mco_metadict_register().)
Application snippet:
int main(int argc, char** argv)
{
MCO_RET rc;
mco_db_h db;
mco_trans_h t;
mco_cursor_t cursor;
unsigned short struct_no = 1;
unsigned short index_no = 5;
mco_metadict_header_t * header;
unsigned short dict_no;
...
rc = mco_trans_start(db, MCO_READ_ONLY, MCO_TRANS_FOREGROUND, &t);
if ( MCO_S_OK == rc )
{
rc = mco_uda_cursor(t, struct_no, index_no, &cursor);
...
rc = mco_uda_cursor_info(t, header, &cursor, &dict_no, &struct_no, &index_no);
...
rc = mco_trans_rollback(t);
}
}