Result
SetOptions
set options of a Result module
Calling Sequence
Parameters
Description
Examples
result:-SetOptions( opts )
result
-
Result module
opts
(optional) equation of the form fetchsize=integer
SetOptions sets various options that affect the behavior of result.
SetOptions accepts one option.
fetchsize = integer
Determines how many rows must be fetched from the database. The more rows fetched, the faster accessing rows will be. However, fetching more rows uses more memory.
An option's current value can be obtained by calling GetOptions.
SetOptions does not return anything.
Calling SetOptions with no arguments raises an error.
driver≔DatabaseLoadDriver⁡:
conn≔driver:-OpenConnection⁡url,name,pass:res≔conn:-ExecuteQuery⁡SELECT * FROM animals:res:-GetOptions⁡
fetchsize=5
stat:-SetOptions⁡fetchsize=8;stat:-GetOptions⁡
fetchsize=8
See Also
Database
Database[Connection]
Database[Connection][CreateStatement]
Database[Result]
Database[Result][GetOptions]
Database[Statement]
Database[Statement][GetOptions]
Database[usage]
Download Help Document