Safe Mode
Preview every mutation before it reaches the server and add friction exactly where it matters.

How it works
When Safe Mode is enabled, edits, inserts, duplicates, deletes, and other mutations show the precise SQL before execution. Reads such as SELECT, SHOW, and EXPLAIN continue normally.
Turn it on
- One connection: edit the connection and enable Safe Mode under Safety.
- New connections: choose Settings → Safety → Default Safe Mode for new connections.
- TablePlus migration: the switching wizard can enable the default for you.
Production checklist
- Confirm the connection name and Production badge.
- Read the table name and full
WHEREclause. - Compare the expected and reported affected-row count.
- Test on staging first when the change is substantial.
- Keep a backup or rollback path for irreversible work.
For a hard boundary, use a read-only database account or Querly's read-only connection mode. Safe Mode helps prevent mistakes; permissions limit capability.
Production lock
Connections marked Production open read-only. To write, click the lock in the top bar or choose Server → Lock or Unlock Production. The unlock lasts 15 minutes by default (change it in Settings → Safety → Production Lock), then the connection locks again by itself in every window.
The Safe Mode switch is in the top bar menu as Preview Writes or Run Writes Directly, and in Server → Toggle Write Preview. It applies to the current connection.