Review SQL writes before they commit
When you run an UPDATE or a DELETE against real data, you usually find out how many rows it touched after it is already committed. In Guard mode Rowpilot runs the write inside a transaction and stops before the commit, so you see the result first and then decide.
Guard is the default transaction mode for new data sources.
Run a write in Guard mode
- Check that the transaction switcher in the editor toolbar shows Guard
- Run your statement, for example:
- Read the review dialog. It shows the exact SQL that ran and how many rows are affected
- Press
Enterto commit, orEscto roll back
Read-only statements are not stopped. A SELECT runs and returns its result immediately.
If you walk away from the dialog, the transaction rolls back automatically after 10 minutes.
Edits in the grid
Changes you make in the data grid go through the same review, so an edited cell or a deleted row is also held until you commit it.
Switch the mode
You pick the mode when you create a data source and you can switch it anytime from the transaction switcher in the editor or grid toolbar. Manual keeps a transaction open until you commit or roll back yourself, and Auto commits every statement. All three are described in Transaction modes.
Make a data source read-only
When you only want to look at the data, turn on Read-only mode for the data source in its quick settings. It is available for the databases that support it, listed in the Connections overview.
Limits
- Some data source types do not support transactions. Guard mode still asks you before a write runs there, but the write cannot be rolled back afterwards
- Only one transaction can run at any given time
