IN: Current query result set. See hc_query_result_set_t.
OUT: Points to an OID that is updated to the OID of a record matching the query, assuming finishedp is 0.
OUT: Updated to point to a name-value record with the metadata from the OID matching the query, assuming the query specified selects and assuming finishedp is 0. Note that you must free the name-value record using hc_nvr_free.
OUT: Points to an int that is updated to 0 if query data has been returned and to 1 if the result set is empty.