Add Simantics/SCL/executeSCLScriptSync to execute scripts synchronously
Currently Simantics/SCL/executeSCLScript
only schedules asynchronous execution of the specified SCL script. The method does not use return a Future
or anything that can be used to wait for the execution to complete.
We need support for other modes of working also.
-
Add executeSCLScriptF :: Resource -> <Proc, Exception> Future String
-
Throw DatabaseException from runScript
if the caller is already inside a transaction, i.e.SCLContext
has agraph
available -
Change executeSCLScript
to blockexecuteSCLScript script = ignore $ getFutureResult $ executeSCLScriptF script