Help › Help and troubleshooting

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.

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

Querlyn keeps everything it knows in one folder and in your keychain.

The folder

On macOS the folder is:

~/Library/Application Support/Querlyn

The bottom of the Settings tab shows the full path of the settings file in it (Querlyn › Open Settings).

FileWhat it holds
settings.tomlYour settings and keyboard shortcuts, as text you can read and edit. See The settings file.
querlyn.sqlite3Everything else Querlyn remembers; see below.
known_hostsThe SSH host keys you chose to trust permanently. See Trust an SSH host's key.
scratch.duckdbThe scratch's tables, only while Keep Scratch Tables Between Sessions is on. It holds copies of your data. See Query your results and join across connections. Turning the setting off leaves the file; delete it yourself when Querlyn is not running.
updatesA folder Querlyn uses while it updates itself: the download, the new version while it is checked, and, after an update, the version that was replaced. Querlyn empties it when it starts. See Update Querlyn.
updates.lockAn empty file that keeps two copies of Querlyn from updating at the same time.
crash-reportsA small text file for each of the last ten times Querlyn stopped on an internal error: the version, where in Querlyn it happened and the message. Report a problem offers the ones from the last 30 days. You can delete the folder.

If the environment variable QUERLYN_CONFIG_DIR names a folder when Querlyn starts, Querlyn uses that folder instead.

What is in querlyn.sqlite3

  • Your connections and their folders: everything in the connection dialog except passwords and other secrets
  • Saved queries and snippets
  • The query history. For Production connections without the SQL text, unless you chose otherwise for a connection; see Search the query history.
  • The names of the schemas, tables and columns of databases you connected to, so that the sidebar and completion work at once the next time
  • Which rows of the sidebar were open, your favorites, and where you put the tables of ER diagrams
  • The table tabs that were open, with the text of their WHERE and ORDER BY fields (for connections whose query history keeps SQL)
  • Which Querlyn account is signed in, what sync has exchanged, and, with the Preview on, your teams' member lists and what they shared
  • The undo journal: the rows that dry runs you committed changed, for connections that keep one; see The undo journal
  • Schema history: snapshots of the structure of schemas, never their rows; see See how a schema changed over time
  • The columns you marked sensitive, and each connection's Undo journal and Mask columns choices
  • The project folders you linked to schemas in the Migrations tab: their paths only

The file is an ordinary SQLite database and is not encrypted. It holds no passwords, keys or tokens, and no rows of your tables other than what appears in the SQL of your query history, saved queries and table tabs' fields, and the rows in the undo journal.

The keychain

Secrets are in your Mac's keychain, never in the files above. To see them, search for com.querlyn.app in the Keychain Access application.

  • Database passwords you chose to save
  • SSH passwords and key passphrases you chose to save
  • Cloud sign-ins you chose to stay signed in with, and Snowflake key passphrases and tokens
  • The token that keeps you signed in to your Querlyn account, and this installation's keys
  • With sync on, the keys that encrypt your synced data, and with teams, the keys of your teams' workspaces

See Choose where passwords are kept.

Files that are yours

  • SQL files you open and save are wherever you put them. Querlyn keeps no copy.
  • Exports, backups, images of charts and diagrams are written where you choose in the save dialog.
  • SQLite and DuckDB databases are the files you pointed Querlyn at.

What Querlyn does not keep

  • Results. Rows you fetched are in memory while their tab is open. The scratch is in memory too, unless you keep its tables.
  • Samples of column values that completion reads: in memory only.
  • The statement console. It is in memory and gone when you quit.
  • Open query tabs. A query tab that is neither a file nor a saved query is gone when you close it or quit; query tabs are not opened again at the next start. Table tabs are: which table and what their WHERE and ORDER BY fields hold (not for a connection whose query history keeps no SQL), never their rows.
  • A log file. Querlyn writes none. The log of the running session is in memory, for Report a problem, and gone when you quit.

While a backup or restore program runs, Querlyn keeps a private folder for it among your temporary files and removes it when the run ends.

Back up Querlyn's own files

Quit Querlyn, then copy the folder. To go back to the copy later, quit Querlyn and put the copy in the folder's place.

The copy does not hold your passwords, because they are in the keychain.

To have the same connections and saved queries on another computer, see Sync your computers, a Preview.

Start afresh

Quit Querlyn, then move the folder away (rather than deleting it, in case you want it back). Querlyn starts as on a new computer. To go back, quit and put the folder back.

Items in the keychain stay until you delete them in Keychain Access, or delete their connections in Querlyn first.

Help for Querlyn 0.1.0. All help topics