Transaction modes
Every data source in Rowpilot runs in one of three transaction modes.
| Mode | Reads | Writes |
|---|---|---|
| Guard (default) | Run and commit instantly | Held in a transaction until you review and commit |
| Manual | Run inside a transaction, manual commit | Run inside a transaction, manual commit |
| Auto | Autocommit | Autocommit |
Pick the mode when creating a data source and switch anytime from the transaction switcher in the editor or grid toolbar.
- The default mode for new data sources is configurable in
Settings → General
Guard mode
Guard is the "seatbelt on" mode, and the default:
- Read-only statements run and return results immediately, no friction
- Anything that writes is executed inside a transaction and stopped before commit.
The review dialog shows you:
- The exact SQL that ran
- How many rows are affected
Enterto commit,Escto rollback
If you walk away, the transaction rolls back automatically after 10 minutes.
Grid edits go through the same pipeline.
Data sources without transactions
Some data source types do not support transactions. In those cases Guard mode still asks you before a write runs, and read-only data sources run in Auto mode.
Manual mode
- Running a statement creates a new transaction which remains open until manually committed or rolled back using the editor or grid toolbar
- Read operations show in the UI during the open transaction
- Progress and affected tables during the transaction can be tracked in the output log
- Use
CommitorRollbackat any point to finish the transaction
Only 1 transaction can run at any given time
Auto mode
- Reads and writes are autocommitted
- Progress and affected tables can be tracked in the output log
Special statements
Some statements can't run inside a transaction and this is autodetected to correctly work with all transaction modes
Tips
- The current transaction state is visible in the editor and grid toolbars
- The AI agent can read the transaction mode - see AI in Rowpilot.
