You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It it nice to have to handle a transaction from application level without embedding business logic in query scripts.
NyQLInstancenyqlInstance = ...
nyqlInstance.doTransaction("transactionId", (nyqlInst, data) -> {
// your business logic here// NOTE: always use provided NyQLInstance instead of the instance in parent scope
},
data, // map of data which will be send to the transaction bodytrue// whether to auto commit or not
);
Transaction body is a BiFunction which has inputs of current NyQLInstance and the map of data. In case user wants to execute other non-transactional scripts from inside transaction body, the provided NyQLInstance must be used.
WARN: User never can call another transactional scripts/queries from inside the transaction body.
The text was updated successfully, but these errors were encountered:
It it nice to have to handle a transaction from application level without embedding business logic in query scripts.
Transaction body is a
BiFunction
which has inputs of currentNyQLInstance
and the map of data. In case user wants to execute other non-transactional scripts from inside transaction body, the providedNyQLInstance
must be used.WARN: User never can call another transactional scripts/queries from inside the transaction body.
The text was updated successfully, but these errors were encountered: