Graph Transactions
In the previous chapter, you explored sessions that connect the GQL client and service, providing the environment to manage transactions. In this chapter, you will explore transaction management, including an overview of the fundamental concepts, their characteristics, and their lifecycle states. The chapter then delves into the specifics of initiating transactions using the START TRANSACTION
command, detailing the syntax, usage, and conditions for starting a transaction. Finally, it explains how to effectively terminate transactions with COMMIT
and ROLLBACK
commands to maintain data integrity and consistency.
This chapter will cover the following main topics:
- Concept of transactions
- Starting a transaction
- Committing a transaction
- Rolling back a transaction