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

dam_getFirstSchemaObject

This function is used to navigate through the items in the schema object list returned by the dam_getSchemaObjectList 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_getFirstSchemaObject(
DAM_OBJ_LIST obj_list)

DAM_OBJ dam_getFirstSchemaObjectW(
DAM_OBJ_LIST obj_list)
Table 117. Parameters for dam_getFirstSchemaObject
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_getFirstSchemaObject(obj_list)
or
damobj_tableW * pTable = (damobj_tableW *)
dam_getFirstSchemaObjectW(obj_list)

See also

*dam_getSchemaObjectList