Help › Connect to databases
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.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
Querlyn connects to thirteen kinds of database, to Apache Kafka, to Redis and to Amazon DynamoDB, and to databases that speak the protocol of PostgreSQL, MySQL, SQL Server, Cassandra or Redis, such as CockroachDB, TiDB, Azure SQL Database, ScyllaDB and Valkey. Writing and running SQL, completion, formatting, the results grid, copying, exporting and charts work on all of them that speak SQL. MongoDB and Cassandra are queried in their own languages instead (see Query MongoDB and Query Cassandra), so the features written for SQL are not offered on them; running, completion, the results, exporting and charts are. Kafka holds topics of messages rather than tables: its topics are read in topic tabs (see Read messages from a Kafka topic), and a query tab takes Kafka's own commands (see Use Kafka commands in a query tab); only the results grid, completion, copying and exporting of the features below apply to it. Redis holds keys rather than tables: a database's keys are browsed and changed in a keys tab (see Browse the keys of a Redis database), and a query tab takes Redis commands (see Run Redis commands in a query tab); of the features below, the same few apply to it. DynamoDB holds items found by key: a table's items are read and changed in an items tab (see Browse a DynamoDB table's items), and a query tab takes PartiQL (see Run PartiQL on DynamoDB); the features that write SQL do not apply to it. Some features depend on what the database itself can do. This topic says where each one works; the databases on another engine's protocol are in the tables under the engine, with their differences named.
Querlyn decides from what the connected server reports. A feature that does not apply to a connection is disabled, with the reason in its tooltip, or says why when you choose it.
Features by database
| Feature | Where it works |
|---|---|
| Transactions that stay open between runs (Commit, Roll Back, auto-commit off) | Every database except ClickHouse, Snowflake, Cassandra, Kafka, Redis and DynamoDB; on MongoDB a replica set or sharded cluster, not a single server |
| Editing rows in the results | Every database except ClickHouse, Snowflake, MongoDB, Kafka, Redis and DynamoDB (a Redis key is changed in its keys tab, a DynamoDB item in its items tab); on BigQuery only tables that declare a primary key; on Cassandra by the whole primary key, each change on its own |
Dry Run of an UPDATE or DELETE, and its undo journal | Every database except ClickHouse, Snowflake, BigQuery, MongoDB, Cassandra, Redis, DynamoDB and SingleStore; on MySQL and MariaDB only for tables on a storage engine with transactions; TiDB 6.2 and later |
| What a query will read, before it runs, and a question on Production for a large one | BigQuery, which bills by the bytes a query reads |
| Comparing the data of two tables | Every SQL database, also between two kinds of database |
| Running a query on several connections | Every SQL database; on BigQuery without the estimate of what it reads |
| Profiling a whole table on its server | Every SQL database; distinct counts are the server's estimate on Redshift, Snowflake, DuckDB and ClickHouse |
| Explain (the estimated plan) | Every database except SingleStore, Kafka, Redis and DynamoDB (where Querlyn says before a SELECT runs whether it is a query by key or a scan); on BigQuery the bytes a statement will read, and the stages of its last run; on MongoDB the query planner's plan; on Cassandra the trace of a SELECT, which runs it |
| Explain Analyze (the measured plan) | PostgreSQL (CockroachDB and YugabyteDB too), MySQL 8.3 and later, TiDB, MariaDB, SQL Server, DuckDB, Oracle Database |
| Server Activity | Every database except SQLite and DuckDB, which are files and have no server sessions, Kafka, Redis and DynamoDB; on Cassandra 4.0 and later and ScyllaDB the node's clients, to look at only |
| Users, roles and privileges | Every database except SQLite and DuckDB, which have no users; not CockroachDB, SingleStore, PlanetScale, Azure SQL Database, BigQuery, MongoDB, Cassandra, Kafka, Redis or DynamoDB |
| Table designer, Show DDL | Every database except BigQuery, MongoDB, Cassandra, Kafka, Redis and DynamoDB |
| ER diagram | Every SQL database; on BigQuery to look at, not to change tables. ClickHouse has no foreign keys, so its diagrams have no relationships |
| Schema compare | Every SQL database except BigQuery, between two schemas of the same kind of database |
| Importing data from files | Every SQL database |
| Copying tables between connections | Every SQL database, in both directions |
| Backup and restore | PostgreSQL, MySQL, MariaDB, SQLite, DuckDB, SQL Server; not CockroachDB, YugabyteDB, TiDB, SingleStore or Azure SQL Database |
| SSH, Kubernetes and AWS Systems Manager routes | Every server database (not the file databases SQLite and DuckDB); on Kafka a Kubernetes route only for a cluster of one broker |
| AWS IAM sign-in | PostgreSQL, MySQL, MariaDB, Amazon Redshift |
| Microsoft Entra ID sign-in | PostgreSQL, MySQL, SQL Server |
| Google Cloud sign-in (service account key or the Google Cloud CLI) | BigQuery, which has no other |
| X.509 client certificate sign-in | MongoDB |
| A client certificate beside the password (mutual TLS) | Cassandra, Kafka, Redis |
| A consistency level per connection and per tab | Cassandra |
| Topics, messages and consumer groups | Kafka |
| Keys browsed and changed in a keys tab | Redis |
| Items read by key or by scanning, and changed, in an items tab; what each read consumed | DynamoDB |
| The "blocking others" notice | PostgreSQL, MySQL 8.0.1 and later, TiDB, MariaDB, SQL Server, Oracle Database; not CockroachDB, YugabyteDB or SingleStore |
| Lock timeout | PostgreSQL, MySQL, MariaDB, SQL Server |
| Statement timeout | PostgreSQL, MariaDB, and MySQL for SELECT statements only |
| Migration lock warnings | PostgreSQL 10 and later, MySQL 8.0 and later, MariaDB 11.2 and later. CockroachDB and TiDB change schemas online: the editor says so instead |
The topics that describe each feature say more: Commit and roll back changes, Edit rows in a result, See a change before you commit it, Compare the data of two tables, Run a query on several connections, Profile the values of a column, See a query's execution plan, See what runs on the server, Manage users, roles and privileges, Back up and restore a database, Lock waits and timeouts and Migration lock warnings. Connect to Google BigQuery says what a BigQuery query will cost before it runs. Connect to MongoDB and Connect to Apache Cassandra say what is particular to MongoDB and Cassandra, and Connect to Apache Kafka what is particular to Kafka, Connect to Redis what is particular to Redis, and Connect to Amazon DynamoDB what is particular to DynamoDB. Connect to CockroachDB, TiDB and other compatible databases says what differs on each database on another engine's protocol.
Read-only connections
Every database can be made read-only in Querlyn: Querlyn then refuses statements that change data before they are sent. On most databases the server holds the session read-only as well.
| The server holds the session read-only too | Querlyn's check alone |
|---|---|
| PostgreSQL (CockroachDB and YugabyteDB too), MySQL, MariaDB, SQLite, DuckDB, ClickHouse, Oracle Database | SQL Server, Azure SQL Database, Amazon Redshift, Snowflake, BigQuery, MongoDB, Cassandra, Kafka, Redis, DynamoDB, TiDB, SingleStore |
Objects whose definition can be shown
Show DDL writes a table's CREATE TABLE on every database that speaks
SQL except BigQuery.
Show Definition shows the source of other objects, for the kinds the
database keeps a definition of:
| Database | Show Definition works for |
|---|---|
| PostgreSQL | Views, materialized views, functions, procedures, sequences, triggers |
| CockroachDB | Views, materialized views, functions, procedures, sequences |
| MySQL, MariaDB | Views, functions, procedures, triggers |
| TiDB, SingleStore | Views |
| SQLite | Views, triggers |
| DuckDB | Views, sequences |
| SQL Server | Views, functions, procedures, triggers, sequences |
| Amazon Redshift | Views, materialized views, functions, procedures |
| ClickHouse | Views, materialized views, dictionaries |
| Oracle Database | Views, materialized views, functions, procedures, packages, types, triggers, sequences |
| Snowflake | Views, materialized views, functions, procedures, sequences |
| BigQuery | Views, materialized views, functions, procedures |
| MongoDB | Views, as the db.createView(…) that makes them |
| Cassandra, ScyllaDB | Tables, materialized views, types, functions, aggregates, as DESCRIBE writes them (Cassandra 4.0 and later) |
On MongoDB there is no Show DDL: a collection has no definition. On
Cassandra a table's CREATE TABLE is its Show Definition.
See Show an object's definition.
Query parameters
A statement with a parameter such as :name asks for its value on every
database. On SQLite, DuckDB and BigQuery the value is bound to the
statement. On the other databases Querlyn writes the value into the statement as a literal,
quoted the way that database quotes it. The Parameters dialog says
which of the two happens. MongoDB and Cassandra statements have no
parameters. See
Run a query with parameters.
Server versions
- PostgreSQL: browsing tables in the sidebar needs PostgreSQL 12 or later.
- ClickHouse: 25.8 or later.
- Oracle Database: 19c or later.
- MySQL: Explain Analyze needs 8.3 or later; the "blocking others" notice needs 8.0.1 or later.
- TiDB: dry runs need 6.2 or later, Explain 6.5 or later.
- CockroachDB: procedures need 23.2 or later, triggers 24.3 or later.
- MongoDB: 4.0 or later; transactions need a replica set (4.0) or a sharded cluster (4.2).
- Cassandra: 2.2 or later (CQL protocol 4); Show Definition and Server Activity need 4.0 or later. ScyllaDB is recognized and works the same way.
- Kafka: 2.1 or later, up to Kafka 4; changing a topic's settings needs 2.3 or later.
- Redis: 4.0 or later, a single server or a cluster. Valkey, KeyDB and Dragonfly are recognized and work the same way. JSON documents need the JSON module (part of Redis 8).
- Amazon DynamoDB: the service's API of 2012-08-10, and DynamoDB Local.
What Querlyn does not connect to
Any other database: for example Elasticsearch. A database that speaks PostgreSQL's, MySQL's or SQL Server's protocol and is not named here may work as that engine, but Querlyn does not know its differences.
Help for Querlyn 0.1.0. All help topics