RunInSeparatePrimary (open)
Run a function in a separate transaction
Syntax
LOADLIB "mod::system/lib/database.whlib";
VARIANT FUNCTION RunInSeparatePrimary(FUNCTION PTR func, RECORD options)
Parameters
FUNCTION PTR func
Function to invoke
RECORD options
Options
work
If true, open and commit work (unless the function throws)
Return value
VARIANT
Return value of the function