Help › Connect to databases

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.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

If you have a connection as one line of text, such as a URL from a hosting dashboard or an application's configuration, Querlyn can fill the connection dialog from it.

postgresql://[email protected]:5432/orders?sslmode=require

Fill the dialog from the clipboard

  1. Copy the URL.
  2. Use Command Palette › Database: Paste Connection URL. It opens a new connection dialog and fills it. If the dialog is already open, choose Paste URL at its top right instead.
  3. Check what was filled in, give the connection a Name and an Environment, and enter the password.
  4. Choose Test Connection, then Save & Connect.

Pasting a URL into the Host field does the same: Querlyn notices that what arrived in one go is a whole URL and spreads it over the fields.

What is taken from the URL

TakenNot taken
The database engine, host, port, database and userThe password, wherever in the URL it is
The Server, when the scheme or the host names one: cockroachdb://, a ….tidbcloud.com host
The encryption setting, and a CA certificate file if the URL names oneAn SSH route in the URL; add the hops yourself under Route
For SQLite and DuckDB, the database fileClient certificates, except MongoDB's
For Snowflake, the sign-in method, role, warehouse and schema
For BigQuery, the project, dataset, location, maximum bytes billed and the service account key's fileA key or token written into the URL; a browser sign-in becomes the Google Cloud CLI
For MongoDB, the other hosts, mongodb+srv, the replica set, the authentication database and mechanism, the read preference, directConnection and the client certificate's fileA sign-in Querlyn does not have (AWS IAM, LDAP, Kerberos, OIDC), which becomes a password sign-in; options that tune MongoDB's own drivers (retryWrites, pool sizes, timeouts)
For Cassandra (cassandra://, or jdbc:cassandra:// as DataGrip and the Simba driver write it), the other contact points, the keyspace and the consistency levelsThe local data center and other options that tune Cassandra's own drivers; DataStax Astra's secure connect bundle, which is refused

When the URL says nothing about encryption, TLS is set as for a connection you type by hand: Verify full, or Prefer for your own computer. The connection's Name and any SSH hops already in the dialog are left as they are.

Anything in the URL that was not used is listed in a line under the dialog's title, for example that its password was not imported.

Note: A password in a URL is never read into Querlyn, not even into the password field. You type it, or it is asked for when you connect.

The forms Querlyn reads

FormExamples
URLspostgres:// and postgresql://, redshift://, mysql://, mariadb://, sqlserver:// and mssql://, clickhouse://, oracle://, snowflake://, bigquery://, mongodb:// and mongodb+srv://, redis:// and rediss:// (Redis over TLS), sqlite:, file:, duckdb:, and cockroachdb://, yugabytedb://, tidb:// and singlestore://
JDBC URLsjdbc:postgresql:, jdbc:mysql:, jdbc:mariadb:, jdbc:sqlserver:, jdbc:redshift:, jdbc:sqlite:, jdbc:duckdb:, jdbc:clickhouse:, jdbc:oracle:thin:, jdbc:snowflake:, jdbc:bigquery:, jdbc:mongodb:, jdbc:yugabytedb:, jdbc:singlestore:
Connection stringsPostgreSQL's host=… dbname=… form, and the Server=…;Database=…; form used by .NET

When the URL cannot be used

The dialog says why in red and changes nothing:

  • "Couldn't use this URL" with the reason, for example an engine Querlyn does not connect to, or a URL without a host.
  • "The clipboard doesn't hold a connection URL Querlyn can read."

To add several URLs at once, see Import connections.

Help for Querlyn 0.1.0. All help topics