Querlyn help
Help for Querlyn 0.1.0.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
Get started
- Get started with Querlyn
Add your first connection, run your first query, look at the result and keep your work, in about five minutes.
- Find your way around the window
What each part of the Querlyn window is for, how to move between the parts with the keyboard, and which tab, panel or dialog holds what.
Connect to databases
- Connect to a database
Add a connection, fill in the connection dialog, test it, and connect and disconnect.
- What works on each database
Which Querlyn features work on PostgreSQL, MySQL, MariaDB, SQLite, DuckDB, SQL Server, Redshift, ClickHouse, Oracle, Snowflake, BigQuery, MongoDB, Cassandra, Kafka, Redis, DynamoDB and compatibles.
- Connect to PostgreSQL
What a PostgreSQL connection needs, how to sign in, and what is particular to PostgreSQL in Querlyn.
- Connect to MySQL or MariaDB
What a MySQL or MariaDB connection needs, which sign-in methods work, and what is particular to these servers in Querlyn.
- Connect to SQLite
Open a SQLite database file, an in-memory database or a new file, and what is particular to SQLite in Querlyn.
- Connect to DuckDB
Open a DuckDB database file or an in-memory database, choose its options, and what is particular to DuckDB in Querlyn.
- Connect to SQL Server
What a SQL Server or Azure SQL connection needs, how to sign in, and what is particular to SQL Server in Querlyn.
- Connect to Amazon Redshift
What a Redshift cluster or Serverless workgroup connection needs, how to sign in with a password or AWS IAM, and what differs from PostgreSQL.
- Connect to ClickHouse
What a ClickHouse connection needs, which port to use, and what is particular to ClickHouse in Querlyn.
- Connect to Oracle Database
Connect to Oracle by service name, SID or connect descriptor, with or without TCPS, and what is particular to Oracle in Querlyn.
- Connect to Snowflake
Connect to Snowflake with a key pair or a token, set the role and warehouse, and what is particular to Snowflake in Querlyn.
- Connect to Google BigQuery
Connect to BigQuery with a service account key or the Google Cloud CLI, see what a query will read before it runs, and what is particular to BigQuery.
- Connect to MongoDB
Connect to MongoDB or MongoDB Atlas with a password, an X.509 certificate, AWS IAM or OIDC, read documents in the results, and what is particular to MongoDB.
- Connect to Apache Cassandra
Connect to Apache Cassandra or ScyllaDB with a user and password, or to DataStax Astra with its secure connect bundle, choose a consistency level, and what is particular to Cassandra.
- Connect to Apache Kafka
Connect to an Apache Kafka cluster with bootstrap servers, SASL and TLS, through any route, and what Querlyn shows of a cluster.
- Connect to Redis
Connect to Redis, Valkey, KeyDB or Dragonfly, a single server or a cluster, with a password or an ACL user and TLS, through any route.
- Connect to Amazon DynamoDB
Connect to a region's DynamoDB tables with your AWS sign-in or an access key, or to DynamoDB Local, and what Querlyn shows of a table.
- Connect to CockroachDB, TiDB and other compatible databases
Databases that speak PostgreSQL's, MySQL's or SQL Server's protocol: how to connect, how Querlyn recognizes each, and what differs.
- Choose an environment
What Local, Development, Testing, Staging and Production mean, and everything Querlyn does differently for each.
- Encrypt a connection with TLS
Choose whether a connection is encrypted and whether the server's certificate is checked, and use a private certificate authority.
- Paste a connection URL
Fill the connection dialog from a connection URL, a JDBC URL or a connection string, and what is taken from it.
- Import connections
Bring connections over from TablePlus, DBeaver, DataGrip, Azure Data Studio, pgAdmin, Sequel Ace, MongoDB Compass, files and URLs, without their passwords.
- Manage connections
Edit a saved connection, replace or remove its saved password, see how folders work, and delete a connection.
Tunnels, sign-in and passwords
- Reach a database through SSH
Connect through one or several SSH hosts with an agent, a key file or a password, or take the route from your SSH config.
- Trust an SSH host's key
What Querlyn asks the first time you connect to an SSH host, where trusted keys are kept, and what to do when a host's key has changed.
- Kubernetes and SSM tunnels
Connect through a kubectl port-forward or an AWS Session Manager port forward that Querlyn starts and stops for you.
- Sign in with AWS, Entra ID, Google Cloud or OIDC
Connect to RDS, Aurora, Redshift, Amazon MSK, Azure databases, BigQuery and MongoDB Atlas with your cloud identity instead of a database password.
- Choose where passwords are kept
Keep a database or SSH password in the keychain, have Querlyn ask every time, or fetch it from a password manager.
- Use a password manager
Fetch a connection's password from 1Password, HashiCorp Vault, LastPass, Bitwarden, AWS Secrets Manager or Azure Key Vault each time it connects.
- Read a connection error
Use the list of steps under Test Connection to see where a connection fails, and what to check for each step.
Explore a database
- Browse a database
Open a connection in the sidebar, move through its databases, schemas, tables and columns, refresh them, and mark favorites.
- Open a table's rows
Open a table or view from the sidebar in a table tab, narrow and sort its rows with WHERE and ORDER BY fields, and edit or export them there.
- Read messages from a Kafka topic
Open a Kafka topic in a topic tab, choose the partitions and where to start, find messages by key or by what their value contains, and follow new ones as they arrive.
- Produce a message to a Kafka topic
Write a message to a Kafka topic with a key, a value and headers, choose its partition or let the key choose it, and see where it was written.
- Manage Kafka topics
See a Kafka topic's partitions and settings, create topics, add partitions, change a setting, delete records or a whole topic, and what asks first.
- See a Kafka consumer group's lag
Open a Kafka consumer group to see its members, the partitions it reads and how far behind it is, reset its offsets once it has stopped, or delete it.
- Use Kafka commands in a query tab
Read messages, produce one and describe topics, groups and the cluster with consume, produce and describe in a query tab on a Kafka connection.
- Browse the keys of a Redis database
Scan a Redis database's keys by pattern and type, see them grouped as a tree, and read a key's value, expiry and size.
- Change a Redis key
Create a key, edit its value, add and remove fields, items and members, set its expiry, rename it or delete it from the keys tab.
- Run Redis commands in a query tab
Run Redis commands as redis-cli takes them, see replies as rows, and know which commands Querlyn asks about or refuses.
- Browse a DynamoDB table's items
Read a DynamoDB table's items by partition key and sort key, through an index, or by scanning with a limit, and see what each read consumed.
- Change a DynamoDB item
Put a new item, edit an item's attributes or delete an item in a DynamoDB table, without overwriting what someone else changed meanwhile.
- Run PartiQL on DynamoDB
Write SELECT, INSERT, UPDATE and DELETE in a query tab on a DynamoDB connection, and know before a statement runs whether it reads by key or scans the table.
- Compare the data of two tables
Match the rows of two tables, or a table and a query's result, by key, see what differs side by side, and get the SQL that makes one side like the other.
- Show an object's definition
Read the statement that creates a table, or the source of a view, function, procedure, trigger or sequence, and open it in the editor.
Write SQL
- Write and run SQL
What a query tab is, what the bar above the editor does, and where to read about writing, running and keeping SQL.
- Query MongoDB
Write MongoDB statements in the shell's syntax or as JSON commands: what Querlyn reads, which methods it runs, and what it refuses.
- Run a MongoDB script in mongosh
Turn on script mode to run a whole tab as one mongosh script, with variables, loops and functions, outside Querlyn's safety checks.
- Query Cassandra
Write CQL on Cassandra and ScyllaDB connections: statements and batches, cqlsh's CONSISTENCY and TRACING, completion that knows the partition key, and which statements ask first.
- Edit text in the SQL editor
The editor's everyday keys for moving, selecting, indenting, commenting, undoing and deleting, in one place.
- Complete SQL as you type
How the editor suggests tables, columns, joins, functions, keywords and a column's values, how to accept a suggestion, and where the suggestions come from.
- Read the editor's underlines
What the wavy underlines in the SQL editor mean, where to read the message, and why some problems are not marked.
- Format SQL
Lay out SQL with one command, choose keyword case, indentation and comma position, and know what the formatter leaves alone.
- Insert snippets
Insert a ready-made piece of SQL by typing a short word, fill in its fields with Tab, and make, import and export snippets of your own.
- Find and replace
Search the SQL in a tab as you type, with case, whole-word and regular-expression options, and replace one match or all of them.
- Edit in several places at once
Put several cursors in the SQL editor, select every occurrence of a word, and make column selections.
- Fold parts of a query
Hide statements, subqueries, CASE expressions and comments behind one line, and unfold them again.
- Refactor a query
Rename aliases and WITH queries, add an alias, turn a subquery into a WITH query and back, expand a star, and qualify columns, without changing what the statement means.
- Use Vim keys
Turn on Vim mode in the SQL editor, and see which Vim commands work, which Querlyn shortcuts keep working, and what is not supported.
- Open and save SQL files
Open .sql files from disk in query tabs, save them back, save any tab as a new file, and what happens when a file changed on disk.
- Keep queries as saved queries
Save a query tab under a name inside Querlyn, organize saved queries in folders, and open, rename, duplicate and delete them.
Run queries
- Run statements and scripts
Run the statement at the cursor, a selection or a whole script, see how Querlyn finds a statement's ends, stop a query, and read errors.
- Choose a tab's connection and database
See which connection and database a query tab uses, change them, start a tab on a particular database, and know what a tab does when it has none.
- Run a query on several connections
Run one statement on many connections or tenant databases at once and read every answer in one grid, with a Connection column and each connection's status.
- Run a query with parameters
Write a statement with placeholders, enter their values in the Parameters dialog when you run it, and know how the values reach the database.
- Commit and roll back changes
See a tab's transaction state, turn auto-commit on and off, begin, commit and roll back, and what happens to an open transaction when you close a tab.
- See a query's execution plan
Show a statement's execution plan as a tree, measure it with Explain Analyze without keeping its changes, and read the heaviest steps.
- Compare two query plans
See two execution plans of a statement side by side, before and after an index or on two connections, with what changed and by how much.
- Search the query history
Search the statements you ran, open, insert or run one again, and choose what the history keeps for each connection.
- Run SQL from the command line
List your saved connections, run SQL on them, and run notebooks from a terminal, a script or a scheduled job with the querlyn command, with Querlyn's passwords and safety checks.
Work with results
- Work with results
Read the results pane, move and select in the grid, arrange columns, and load more of a large result.
- Sort and filter results
Sort a result by a column, filter its rows as you type or by one value, and have the database sort all rows when not every row is loaded.
- Look at one row or one value
Read a wide row as a list of fields in the record view, and open long text, JSON and binary values in the value viewer.
- Copy results
Copy cells from a result as plain text, with headers, or as CSV, JSON, SQL INSERT statements or a Markdown table.
- Export results to a file
Write every row of a result, the loaded rows or the selected rows to a CSV, TSV, JSON, JSON Lines, SQL or Excel file.
- Edit rows in a result
Change cells, add, duplicate and delete rows in the results grid, review the SQL, apply the changes, and know how Querlyn identifies each row.
- Edit MongoDB documents
Change and remove fields in the results, edit a whole document as JSON, add and delete documents, and how each value keeps its type.
- Follow a foreign key
Peek at the row a foreign-key value refers to without leaving the result, or open it in a tab of its own.
- Draw a chart from a result
Turn a result into a bar, line, area, scatter, pie or histogram chart, choose what it shows, and export it as an image or as data.
- Show geometry on a map
Draw a result's points, lines and polygons on a map, pan and zoom, select a row by its shape, and see one value on a map in the value viewer.
- Profile the values of a column
See each column's NULLs and a small histogram under its header, open a column's full profile, and profile a whole table on its server.
- Query your results and join across connections
Copy any result, or a CSV, JSON, Parquet or Excel file, into the scratch and query it with SQL, joining results from different connections.
- Compare two results
See which rows a change to a query added, removed or changed, by comparing a result with the previous run's or with any other result.
Work in notebooks
- Work in notebooks
Keep queries, their results and charts, your notes and Python together in a notebook, run its cells on one connection, and save it as a Jupyter notebook file.
- Run notebook cells on several connections
Run a notebook's cells on different connections, name their results, and join results from different databases in a scratch cell.
- Give a notebook parameters
Add typed parameters to a notebook (text, numbers, dates, date ranges, true or false, lists filled by a query), use them in query cells, and run the notebook with other values, as papermill does.
- Keep a notebook's results up to date
See which results of a notebook are out of date after an edit, a new parameter value or a cell run again, and run a cell with what depends on it, reusing results that did not change.
- See what changed since a cell's last run
A notebook's query cells keep their previous result and say how many rows were added, changed and removed since the run before, in the window and in scheduled runs.
- Run Python in a notebook
Run Python cells in a notebook through a Jupyter kernel on this computer, hand query results to pandas, and query a DataFrame from a scratch cell.
- Export a notebook as a report
Make a report of a notebook, as one HTML file or as Markdown, with its text, results, charts and pictures, from Querlyn or from the command line.
- Pivot, chart and filter a result without SQL
Add a pivot table, a chart or a filter of an earlier cell's result to a notebook, chosen from menus, and see the query Querlyn writes for it.
- Read a Google Sheet into a notebook
Add a cell whose result is a range of a Google Sheet, read each time it runs with a read-only Google sign-in, and join it with query results in the scratch.
- Show a notebook as a dashboard
Show a notebook as a read-only page with its parameters on top, its text, charts and tables below and its code hidden, refresh it with one button, and export the same view as a report.
- Troubleshoot a server with a runbook
Open a ready-made notebook of read-only queries that finds slow queries, locks, large tables, replication lag and busy connections on PostgreSQL, MySQL, MariaDB, SQL Server and ClickHouse.
- Run a notebook on a schedule
Have your computer run a saved notebook at the times you choose and write its results and a report, and see how each run ended.
- Send a notebook's results to Slack, email or a sheet
Have a scheduled or command-line run of a notebook post its outcome to Slack, mail its report, or write a result into a Google Sheet.
- Keep notebooks in git
Commit notebooks without their results, and keep a text copy of their cells beside them so a review reads the queries.
- Sync a notebook between your computers
Choose the notebooks whose cells follow you to your other computers, end-to-end encrypted and without their results, and see what happens when one changes in two places.
- Share a notebook with your team (Preview)
Put a notebook's cells in a team workspace so every member has them, and discuss a cell in comments that only the team can read.
- Use the keyboard in notebooks
Move between a notebook's cells, add, change, move and delete them, and run them from the keyboard, with Jupyter's keys.
- Open notebooks from others
Open Jupyter, VS Code and Azure Data Studio notebooks and a colleague's Querlyn notebooks safely, choose the connection their cells run on, and trust a notebook you know.
Change a database's structure
- Create and change tables
Add, rename and remove columns, keys, indexes, foreign keys and checks in a form, read the SQL before it runs, and apply it safely.
- Draw an ER diagram
Draw a schema's tables and the foreign keys between them, arrange and export the picture, and add tables, columns and relationships in it.
- Compare two schemas
Find what differs between two schemas of the same kind of database, choose what to carry over, and get the SQL that changes the target to match the source.
- See how a schema changed over time
Keep snapshots of a schema's structure, see what changed between them and since last week, and compare a schema with how it was or with another environment.
- See applied and pending migrations
See which migrations a schema has applied, which your project still holds, which failed, and which files changed since they ran, for ten migration tools.
- Migration lock warnings
Querlyn marks schema changes that would make other sessions wait on a large table, says how large the table is, and offers a form that does not block.
Import, export and back up
- Import data from a file
Load rows from a CSV, TSV, JSON or Excel file into a table that exists or into a new one, all or nothing, and find the row that stopped an import.
- Copy tables between connections
Copy tables or a result into another connection, of the same database or another kind, creating the tables or adding to them, with every change of type listed first.
- Back up and restore a database
Back up a database to a file and restore one, which databases this works for, which programs it uses and where Querlyn finds them.
Stay safe
- Stay safe on production
What Querlyn does differently on a Production connection, and the tools that protect you everywhere, with links to each in detail.
- Confirm risky statements
Which statements Querlyn asks about before running them, on which connections, what the question shows, and how to change the rules.
- Confirm with Touch ID
Answer the questions Querlyn asks before a change on Production with Touch ID or your Mac's password instead of a click.
- See a change before you commit it
Dry-run an UPDATE or DELETE to see how many rows change and how, commit or roll it back, and write the inverse statements of a change later.
- Share your screen safely
Hide host names, users and databases with one switch, mask the columns you mark sensitive, and show one value when you need it.
- Read-only connections
Make a connection refuse every statement that changes data, know what is still allowed, how it is enforced on each database, and how to turn it off.
- Lock waits and timeouts
See which sessions wait on your open transaction, get reminded of a transaction left open, and limit how long your statements wait for a lock or run.
Watch and manage the server
- See what runs on the server
List the sessions on a database server, find the one that runs long or blocks others, and cancel its query or end the session.
- Manage users, roles and privileges
See who may sign in to a database server and what each user and role may do, and create users, set passwords and grant or revoke privileges.
- See what Querlyn sends
Open the statement console to watch what Querlyn sends to a database, its own statements included, and know what the console keeps and hides.
Make Querlyn yours
- Change settings
Open Settings, choose the theme, density and text sizes, and edit the settings file for the choices that have no button.
- Choose a theme
Pick Querlyn's light and dark themes, follow your computer's light or dark appearance, try themes in the whole window, and add a theme of your own.
- Change keyboard shortcuts
Find the shortcut for any command, use the keymap of DataGrip, VS Code or TablePlus, and change the ones you want.
- Settings reference
Every setting in Querlyn's settings file, with its values, what it starts as, and where to change it in the Settings tab.
Account, license and sync
- Your account and license
Sign in to your Querlyn account, activate this computer, read what the Account section says about your license, and manage your installations.
- Sync your computers (Preview)
Keep connections, saved queries, snippets and settings the same on your computers with end-to-end encrypted sync, a Preview you turn on yourself.
- Work in a team (Preview)
Share connections, saved queries and snippets with your team in end-to-end encrypted workspaces, manage members and the team's policy, and follow what happened.
Help and troubleshooting
- Get help
Open help, search it, and get the topic for the tab or dialog you are in.
- Update Querlyn
How Querlyn finds a new version, what it checks before installing one, and what to do when a version cannot be installed from inside Querlyn.
- Troubleshooting
What to check when something does not work as you expect, by symptom, and what to collect before you ask for help.
- Report a problem
Send Querlyn support a description of what went wrong with the facts that help, after reading every file it holds, or save it and email it.
- Known limits
What Querlyn does not do in this version, and what has not yet been tried against a real server or service, with the nearest thing that does work.
- Where Querlyn keeps its files
The folder, files and keychain items Querlyn uses on your computer, what each holds, and how to back them up or start afresh.
- What is sent and stored
Where your SQL, your data and your passwords go when you use Querlyn, what querlyn.com receives, and what Querlyn stores on your computer.
- Open-source acknowledgements
The open-source software Querlyn is built with, each component with its license, and where to read the licenses in full.
More
- What's New in each release.
- Account help: signing in, passkeys, sync, exports and deleting your account.
- Support, when the help does not answer your question.