Action group: Databases
The action completes the current transaction and confirms all changes that were made within this transaction
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
DB context | Connection context to the selected database | Robin.DbContext | Database context | Yes |
None.
Connect to the database, run a query:
UPDATE Table1 SET title = 'Car' WHERE id=2 |
Then close the transaction and perform an additional query without closing the transaction:
UPDATE Table1 SET title = 'Phone' WHERE id=3 |
The original view of the table:
Use the actions "Connect Standard Db", "Execute Sql Statement", "Commit Transaction".
The program robot completed successfully. The first transaction has been completed. The changes within the first transaction have been confirmed and saved in the database:
The subsequent queries that come after the "Commit Transaction" action are queries of the second transaction that was not closed, accordingly, the query was not executed on the database.