The database server supports the following kinds of collections.
All collection data types use the same internal format to store their values. For more information on collection data types, see the IBM Informix: Guide to SQL Reference.
The DataBlade API supports the following SQL collection data types and data type structures:
A collection structure, MI_COLLECTION, is a DataBlade API structure that holds the collection (LIST, MULTISET, or SET) and its elements. The following table summarizes the memory operations for a collection structure.
Memory Duration | Memory Operation | Function Name |
---|---|---|
Current memory duration | Constructor | mi_collection_copy( ),
mi_collection_create( ), mi_streamread_collection( ) |
Destructor | mi_collection_free( ) |
The following DataBlade API functions return an existing collection structure.
DataBlade API Function | Description |
---|---|
mi_value( ),
mi_value_by_name( ) |
Returns a collection structure as a column value when the function returns an MI_COLLECTION_VALUE value status |
A collection descriptor, MI_COLL_DESC, is a DataBlade API structure that contains a collection cursor to access elements of a collection. The following table summarizes the memory operations for a collection descriptor.
Memory Duration | Memory Operation | Function Name |
---|---|---|
Current memory duration | Constructor | mi_collection_open( ),
mi_collection_open_with_options( ) |
Destructor | mi_collection_close( ) |