MI_COLL_DESC *mi_collection_open(conn, coll_ptr, control) MI_CONNECTION *conn; MI_COLLECTION *coll_ptr; mi_integer control;
The mi_collection_open_with_options( ) function is a constructor function for the collection descriptor. The function opens the collection that coll_ptr references and returns a collection descriptor for the open collection. Other DataBlade API collection functions use this collection descriptor to access the elements of a collection.
The mi_collection_open_with_options( ) function allocates a new collection descriptor in the current memory duration.
This function creates a collection cursor to hold the collection elements. By default, this cursor is an update scroll cursor. If this type of cursor is not adequate for your DataBlade API module, you can create a collection cursor with characteristics specified by a bit mask in the control argument.
This function is useful for accessing collection subqueries.
See also the descriptions of mi_collection_close( ), mi_collection_copy( ), mi_collection_create( ), mi_collection_delete( ), mi_collection_fetch( ), mi_collection_free( ), mi_collection_insert( ), mi_collection_open( ), mi_collection_update( ), mi_open( ), mi_server_connect( ), and mi_server_reconnect( ).
For a description of collections, see the IBM Informix: DataBlade API Programmer's Guide.