Production safety
Every connection has an environment: Local, Development, Testing, Staging or Production. What Querlyn asks, keeps and hides follows it.
Confirmations that fail closed
Querlyn parses every statement. It never matches substrings, and it checks a script statement by statement.
- Destructive statements ask first on Testing, Staging and Production:
DROP,TRUNCATE, dropping a column, aDELETEorUPDATEwithout aWHEREor with one that is always true,MERGE … DELETE,REVOKE, SQL Server’sDENY, and each engine’s own, such as dropping a ClickHouse partition. - On Production, a statement Querlyn cannot classify asks too. It fails closed.
- Enter never confirms.
- Row edits, structure changes, imports, copies, restores, changes to users and privileges, and ending other sessions go through the same policy.
- Production is marked in red everywhere: the tab, the bar’s edge and the status bar.
- A read-only switch per connection refuses every statement that changes data before it is sent.

In the help: Stay safe on production, Confirm risky statements, Choose an environment, Read-only connections
Dry run and undo
See the rows an UPDATE or DELETE would change before anything is committed.
- Dry Run runs one statement inside a transaction, reads the rows it changes before and after by their key, and waits: “412 rows will change in public.products”, each value old and new, 100 rows a page.
- Nothing commits by itself. Closing the tab or losing the connection rolls back.
- A committed change can be kept in an undo journal on your Mac: 50 changes per connection, 200 in all, for 30 days. It is off on Production by default.
- Revert This Change writes the inverse statements into a new tab, after checking which rows changed since. Querlyn never runs them for you.

public.products, each value before and after, and commits nothing until you choose Commit.Where it stops
- One table with a key. Not
INSERT,MERGE, joins,WITH,LIMITor parameters. Up to 10,000 rows and 16 MB of each side are kept, and the effects of triggers and cascades are not shown. - Run against PostgreSQL 18.6, MySQL 8.4.11 and SQLite. Supported but not yet run on SQL Server, Oracle, DuckDB, Redshift and MariaDB.
- Not on ClickHouse, nor on MyISAM tables. Not on Snowflake or SingleStore either, which have not been run against a real server.
In the help: See a change before you commit it
Locks: yours, and a migration’s
Querlyn tells you when your open transaction blocks other sessions, and when a schema change would.
- While a tab’s transaction is open, Querlyn checks every few seconds whether other sessions wait for its locks: “Blocking 3 sessions · 40 s”, beside Commit and Roll Back, with a list of who waits. It sees lock waits on PostgreSQL, MySQL 8.0.1 or later, MariaDB, SQL Server, Oracle and TiDB.
- On PostgreSQL, MySQL, MariaDB and SQL Server, a statement waiting for a lock is stopped after 10 s on Production and 30 s on Testing and Staging, and the message says the limit was Querlyn’s.
- A transaction left open is pointed out after 2 minutes on Production, 5 on Testing and Staging, and 15 elsewhere.
- Querlyn never commits, rolls back or ends anything for you.
- As you type, a schema change that would make other sessions wait is underlined with what the server will do, the table’s size from the catalog, and the safe way to write it. Refactor This writes the safe form.


orders table would block its reads and writes, and the warning names the safe rewrite.Where it stops
- Lock waits were run for real on PostgreSQL, MySQL and MariaDB. On SQL Server and Oracle they were tested against sample output only.
- Migration lock warnings: PostgreSQL 10 or later, MySQL 8.0 or later with InnoDB, and MariaDB 11.2 or later.
In the help: Lock waits and timeouts, Migration lock warnings
Confirm with Touch ID
A switch per risk level, off by default.
- With it on, the last click of each question Querlyn already asks takes your fingerprint or your Mac’s password. Nothing new is asked.
- The real system prompt for Touch ID has not yet been seen by a person: the tests use a stand-in.
In the help: Confirm with Touch ID
Next: Schema and data tools or see the databases Querlyn connects to.
