Connections
A connection tells QueryLane how to reach one database server, file or file storage. Connections are listed in Connections > Data sources. For a walkthrough, see Connect a database.
Supported engines
Create connection groups the engines by family:
| Group | Engines |
|---|---|
| Files and import | Local files (CSV, JSON, JSONL) and Import |
| Embedded databases | SQLite |
| MySQL-compatible | MySQL, MariaDB, Percona Server |
| PostgreSQL-compatible | PostgreSQL, CockroachDB, YugabyteDB |
| Microsoft SQL Server | SQL Server 2017 and later |
| Document databases | MongoDB |
| Analytics databases | ClickHouse |
| File storages | S3-compatible storage and SFTP, see S3 and SFTP storages |
The JDBC databases plugin adds Oracle, Db2, Teradata and Firebird to Enterprise databases, Snowflake, Databricks and BigQuery to Cloud warehouses, Hive, Spark SQL and Trino to Analytics databases, H2 to Embedded databases, and any JDBC driver to Other databases.
MariaDB and Percona Server use the MySQL driver, CockroachDB and YugabyteDB use the PostgreSQL driver. QueryLane adjusts to each server's differences, so choose the exact engine. The port defaults to the engine's standard one, such as 26257 for CockroachDB or 8443 for ClickHouse.
Add a connection
- Click Connections in the left rail.
- In Data sources, click + (Add source).
- Choose the engine, or find it with Search or paste a connection string.
- Enter a unique Connection name.
- Fill in the Basic tab.
- Click Test. Connection works means the server accepted the settings. If the test fails, the form keeps what you entered.
- Click Create.
Paste a connection string
Paste a connection string into Search or paste a connection string, or into the Host field of the form, and QueryLane picks the engine and fills in the host, port, database, user and password. It reads:
- PostgreSQL, MySQL, MongoDB including
mongodb+srv, ClickHouse and SQLite URLs, such aspostgres://reader@db.example.com:5432/shop; - JDBC URLs, such as
jdbc:mysql://db.example.com:3306/shoporjdbc:sqlserver://db.example.com:1433;databaseName=shop; - SQL Server
sqlserver://URLs and ADO.NET strings, such asServer=db.example.com,1433;Database=shop;User Id=reader; - libpq strings, such as
host=db.example.com port=5432 dbname=shop user=reader; .envlines, such asDATABASE_URL=postgres://….
Basic settings
For the MySQL, PostgreSQL and ClickHouse families, Host, Port, Database and User are required and Password is optional.
For SQL Server, Host, Port, Database and User are required. Instance names a named instance such as SQLEXPRESS: SQL Server Browser then finds its port, so leave the port as is; through an SSH tunnel, enter the instance's port instead. The Advanced tab sets Authentication to SQL Server login or Windows account (NTLM) with its Windows domain. In scripts, a line holding only GO starts a new batch, as in SSMS.
For MongoDB, User and Password are optional, and Auth Source names the database that holds the user, for example admin. The Advanced tab adds Auth mechanism, Server selection timeout, ms and Direct connection. See MongoDB.
SQLite asks for a Database file with an absolute path. Choose file opens an existing database, New file creates one. Read only opens the file without allowing changes.
For Local files, see CSV and JSON files.
Several databases in one connection
The Database field sets where QueryLane connects first. The object tree then lists every database your user can reach on the server, with schemas for PostgreSQL and SQL Server, so you do not need a connection per database. See Explorer.
Encrypt with SSL/TLS
The SSL/TLS and SSH tabs appear for the MySQL, PostgreSQL, MongoDB and ClickHouse families and for SQL Server. On SQL Server, without Use SSL/TLS only the login is encrypted; Require encryption encrypts everything without checking the certificate, which suits servers with a self-signed one.
- Open SSL/TLS and turn on Use SSL/TLS.
- Choose a Verification mode: Require encryption, Verify CA or Verify CA and hostname.
- If the server needs them, enter the paths to CA certificate, Client certificate and Client key.
Allow certificates from any server and Allow invalid hostnames turn off certificate checks.
Connect through an SSH tunnel
- Open SSH and turn on Use SSH tunnel.
- Enter SSH host, SSH port (
22by default) and SSH user. - Choose an Authentication method:
- Password: enter the SSH password.
- Private key: enter the key file, for example
~/.ssh/id_rsa, and its Private key passphrase if it has one. - SSH agent: QueryLane uses the keys loaded in your running SSH agent.
- Optionally paste the SSH server fingerprint (
SHA256:…). Without it, QueryLane checks the server against~/.ssh/known_hosts.
On the Basic tab, Host is the database address as the SSH server sees it, for example localhost when the database runs on the bastion itself.
Save SSH password and Save private key passphrase are off by default, so QueryLane asks for these secrets instead of saving them.

Where passwords are stored
Database passwords, SSH passwords, key passphrases, the password of the SSL client key and the keys of S3 and SFTP storages are kept in an encrypted vault, not in the profile files. On a Mac, the key of the vault is stored in the Keychain. On Windows, it is kept in a file that Windows encrypts for your user account. Agents connected over MCP and the command line see masks instead of these values, and the assistant never receives them. See Where your data lives.
Agent access
The Agents block in Connection settings sets how far AI agents may go with this connection through QueryLane tools: MCP, the command line and the built-in assistant.
- No access: agents cannot browse or query the connection.
- Read only: agents can browse objects and run queries that only read. QueryLane refuses statements that change data or schema and opens a read-only database session where the engine has one. SQL Server has none, so QueryLane runs such queries in a transaction and rolls it back. For the JDBC plugin, see Agents with read-only access. MongoDB code runs in a separate process that can only read. Query time limit caps how long a query of these agents may run; an empty field keeps the usual limit.
- Read and write: agents can also change data and edit the connection. Approve changes chooses whether their changes go through at once (Allow always) or wait for you in a QueryLane window (Ask), see Approvals.
Until you choose a level, agents get Read only on production connections and on connections without an environment, which is how QueryLane creates them. Connections imported with another environment, such as development or test, allow writes. Choose Read and write only where agents need to write, and QueryLane warns you when that lets them change production data.
Agents cannot change this block, and they cannot give a connection your SSH agent, private keys, known_hosts files or client certificates. When an agent points a saved connection at another host, the saved password stays behind, see What agents may change.
After Test connection, the block shows whether the database login can write. The level guards against agent mistakes, and a login that can only read is the hard boundary: agents cannot change data through it at any level.
Settings > CLI and MCP > Agent access to connections lists every connection with its level, so you can change them in one place. See Connect your agent.
Change, close or delete a connection
Right-click a connection under Data sources:
- Connection settings: change the settings, click Test connection, then Save.
- Close connection: disconnect.
- Delete: remove the connection after you confirm. It appears only when the connection is closed.
To find a connection, type in Search connections above the list. It matches the name, type, environment, host, database and file path. Sort and filter next to the search holds the sort order, tag filters, New folder and New tag. To file or tag a connection, choose Folder and tags in its menu.
Import connections
- Click + (Add source) and choose Import under Files and import. You can also drop an import file anywhere in the QueryLane window.
- Choose Choose a file… and select a QueryLane backup (
.enc), a Navicat connections export (.ncx) or DBeaverdata-sources.json, or choose DBeaver on this Mac to read the connections of your DBeaver workspace. On Windows, pickdata-sources.jsonwith Choose a file…: DBeaver keeps it in%APPDATA%\DBeaverData\workspace6\General\.dbeaver\. - For a QueryLane backup, enter the Decryption key and click Decrypt. For Navicat and DBeaver, tick the connections you want:
- Navicat PostgreSQL, MySQL, MariaDB, SQL Server, MongoDB and SQLite connections are imported, with passwords when QueryLane can decrypt them;
- DBeaver connections come with their saved passwords, SSH tunnels, SSL settings, folders and environments. A dropped
data-sources.jsonbrings passwords when you dropcredentials-config.jsonwith it.
- Under Import mode, choose Add to existing or Replace connections.
- Click Import.
To export connections, use Settings > Export and import.