OrientDB Commit Database - OrientDB

What is OrientDB Commit Database?

Similar to RDBMS, OrientDB also offers transaction concepts like Commit and Rollback. Commit refers to closing the transaction by saving all changes to the database. Rollback refers to recovering the database state to the point where you opened the transaction.
The following statement is the basic syntax of the Commit database command.
Note − You can use this command only after connecting to a exacting database and after beginning the transaction.


In this example, we will use the same database named ‘demo’ that we created in the previous chapter. We will see the operation of commit transaction and store a record using transactions.
First, start the transaction using the following BEGIN command.
Then, insert a record into an employee table with the values id = 12 and name = satish.P using the following command.
You can use the subsequent command to commend the transaction.
If this transaction is productively committed, you will get the following output.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

OrientDB Topics