Transaction mode
Use transaction mode to send a request that writes to the database without keeping the changes. It is useful for create, update and delete routes.
Prerequisites
- The request goes to the application that runs Nimbus. Other hosts do not have the Nimbus listeners. See Environments.
- Your application uses a database connection.
Steps
- Open Request options in the endpoint bar.
- Turn on Transaction mode.
- Send the request.

Nimbus opens a transaction on every connection in database.connections and rolls them all back when the request ends. The response shows a Transaction mode badge to tell you the changes were rolled back.
You can also turn the mode on or off with Toggle transaction mode in the command palette. The setting belongs to the request tab.
Every configured connection is opened
Transaction mode does not look at which connection the request uses. It opens a transaction on every connection listed in database.connections, including connections your route never touches.
If a connection cannot be reached
Nimbus skips that connection and lists it in the X-Nimbus-Transaction-Skipped response header. Check the header when you need to be sure all data was covered.
Each unreachable connection can delay the request, because Nimbus waits for the connection attempt to fail before it skips it. Remove connections you do not use from database.connections in the environment where you test, so the request starts faster.
What is not rolled back
Only database changes are rolled back. Sent emails, calls to external APIs, file changes and cache writes still happen. To fake some of these, use Sandbox mode.