Result
Close
close a Result module
Calling Sequence
Parameters
Description
Examples
result:-Close( )
result
-
Result module
Close frees the resources associated with result. This happens automatically when result is garbage collected; however, you can call Close to release the resources immediately.
Any descendant modules of result are closed when result is closed. (A module is a descendant of a parent module if it is returned by one of the parent module's exports or if it is a descendant of one of the parent module's descendants.)
Create a Result, res.
driver≔DatabaseLoadDriver⁡:
conn≔driver:-OpenConnection⁡url,name,pass:res≔conn:-ExecuteQuery⁡SELECT * FROM animals:
Close res.
res:-Close⁡
Try using res.
res:-Next⁡
Error, (in ExecuteQuery) this object has been closed, no further operations are possible
See Also
Database
Database[Connection][ExecuteQuery]
Database[Result]
Database[usage]
Download Help Document