Functions - begin()

This method initiates a transaction within the function.

Using Transactions

When using a transactional database, which are retrieved using the methods orient.getGraph() or orient.getDatabase() and not orient.getGraphNoTx(), you can manage transactions within your functions. You may find this useful in situations where you want the function to rollback operations when it encounters conflicts or similar problems.

For more information on transactional methods, see commit() and rollback().

Syntax

db.begin()

results matching ""

    No results matching ""