Safe Mode

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

Safe Mode previewing an UPDATE statement with Copy SQL, Cancel, and Run.
Read the exact SQL before anything touches your data.
Watch Safe Mode catch a change before it runs.

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

Production checklist

  1. Confirm the connection name and Production badge.
  2. Read the table name and full WHERE clause.
  3. Compare the expected and reported affected-row count.
  4. Test on staging first when the change is substantial.
  5. Keep a backup or rollback path for irreversible work.
Safe Mode is not a permission system

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.

↑↓ move↩ open