skip to main content
Implementing Table Expression Pushdown : About Table Expression Pushdown : Building Results
 

Building Results

The IP can use dam_getTableStmt() to get the OpenAccess SDK SQL engine handle to the statement for which the IP wants to build results.
To get column information for each table, the IP can use dam_getFirstCol(), dam_getNextCol() to get column handles of columns used in the query.
To get the column description, the IP can use dam_describeCol(), dam_describeColDetail().
When building outer table results, the IP uses:
dam_allocRow(), dam_addValToRow(), dam_addRowToTable()
When building pushdown join results, the IP uses:
dam_allocRowset(), dam_allocRow(), dam_addValToRow(), dam_addRowToRowset(), dam_addJoinRowSet()