BeginTransaction
Begin transaction (often exposed as beginTransaction) is a database operation that starts a new transaction. A transaction groups a set of data-modifying operations so that they either all succeed together or have no effect if rolled back. When a transaction begins, the database typically disables autocommit for the session and establishes a transactional scope that persists until a COMMIT or ROLLBACK is issued.
SQL standards describe beginning a transaction with BEGIN TRANSACTION (or BEGIN), with some dialects using START
In application code, beginTransaction is commonly provided as a method on a connection or database context.
Transactions rely on ACID properties: atomicity, consistency, isolation, durability. They offer control over isolation level, which
See also: commit, rollback, savepoint, autocommit, isolation level, two-phase commit.