The _rewind_extfn v4 API method restarts a result set at the beginning of the table.
void _rewind_extfn( a_v4_extfn_table_context *cntxt, )
This function is an optional entry point. The UDF implements the _rewind_extfn method when the result table is rewound to the beginning. The UDF should consider implementing this method only if it can provide the rewind functionality in an efficient and cost-effective manner.
If a UDF chooses to implement the _rewind_extfn method, it should tell the consumer during the state EXTFNAPIV4_STATE_OPTIMIZATION by setting the EXTFNAPIV4_DESCRIBE_PARM_TABLE_HAS_REWIND parameter for argument 0.
The UDF may decide not to provide the rewind functionality, in which case the server compensates and provides the functionality.
Parameter | Description |
---|---|
cntxt | The procedure context object |
No return value.