Features

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, a DELETE or UPDATE without a WHERE or with one that is always true, MERGE … DELETE, REVOKE, SQL Server’s DENY, 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.
On a Production connection, an UPDATE without a WHERE stops at a question that names the statement and offers Dry Run First.
On a Production connection, an UPDATE without a WHERE stops at a question that names the statement and offers Dry Run First.

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.
A dry run shows the 412 rows an UPDATE would change in public.products, each value before and after, and commits nothing until you choose Commit.
A dry run shows the 412 rows an UPDATE would change in 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, LIMIT or 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.

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.
A Production transaction that blocks three sessions says so beside Commit and Roll Back, and lists who waits and for how long.
A Production transaction that blocks three sessions says so beside Commit and Roll Back, and lists who waits and for how long.
A migration lock warning: adding a check to the 38 GB orders table would block its reads and writes, and the warning names the safe rewrite.
A migration lock warning: adding a check to the 38 GB 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.

Screen-share mode and masked columns

Hide names and sensitive values before you share your screen.

  • One switch hides host names, IP addresses, ports and user names, and shows database names as placeholders, everywhere Querlyn writes them.
  • Columns you mark as sensitive show dots in the grid, the record view, the value viewer, every copy and export format, charts, and problem reports.
  • Querlyn suggests marks from names such as email, phone and salary, and never applies one without your answer.
  • Production masks marked columns even without the mode.
  • Show one value for five seconds when you need it. It never leaves the screen.
Screen-share mode hides host, user and database names and masks the email and phone columns; one value is shown on request.
Screen-share mode hides host, user and database names and masks the email and phone columns; one value is shown on request.

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.

Next: Schema and data tools or see the databases Querlyn connects to.