skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_getNextSchemaObject
 

dam_getNextSchemaObject

This function is used to navigate through the items in the schema object list returned by the dam_getNextSchemaObject call. This function returns an object of type DAM_OBJ. It should be type cast to the type of objects contained in the list
(damobj_table, damobj_column, damobj_stat or damobj_fkey).
DAM_OBJ dam_getNextSchemaObject(
DAM_OBJ_LIST obj_list)

DAM_OBJ dam_getNextSchemaObjectW(
DAM_OBJ_LIST obj_list)
Table 140. Parameters for dam_getNextSchemaObject
Parameter
Type
Description
IN
obj_list
DAM_OBJ_LIST
The handle to the list of schema objects.
RETURN
DAM_OBJ
A pointer to an object in the list. A NULL is returned at the end of the list.
For example, to retrieve an object from a list of DAMOBJ_TYPE_TABLE objects:
damobj_table * pTable = (damobj_table *)
dam_getNextSchemaObject(obj_list)
or
damobj_tableW * pTable = (damobj_tableW *)
dam_getNextSchemaObjectW(obj_list)

See also

*dam_getNextSchemaObject