Help › Make Querlyn yours

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.

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

This is the full list of what settings.toml can hold. For where the file is and how to edit it safely, see The settings file.

A setting that is missing from the file has its starting value. The file's first key is version, the version of the file's layout, which is 1 today. Querlyn maintains it; leave it as it is.

In the tables, "Settings" names where the same choice is in the Settings tab; "File only" means it has no control there.

appearance

[appearance]
theme = "system"
light_theme = "solarized-light"
dark_theme = "nord"
density = "compact"
ui_font_size = 13
KeyValuesStarts asSettings
themedark, light, systemsystemAppearance, Theme
light_themeA theme's name: querlyn-light, high-contrast-light, solarized-light, github-light, or the name of a light theme file of your own. See Choose a theme.querlyn-light (written only once you choose another)Appearance, Light theme
dark_themeA theme's name: querlyn-dark, high-contrast-dark, solarized-dark, nord, one-dark, dracula, github-dark, tokyo-night, or the name of a dark theme file of your ownquerlyn-dark (written only once you choose another)Appearance, Dark theme
densitycompact, comfortablecompactAppearance, Density
ui_font_size11 to 1613Appearance, Interface text size

editor

[editor]
font_family = "JetBrains Mono"
font_size = 13
cursor_blink = true
vim_mode = false
prompt_for_parameters = true
KeyValuesStarts asSettings
font_familyThe name of a font installed on this computerNot set: your system's fixed-width fontFile only. Editor, Font shows the font in use.
font_size9 to 3213Editor, Editor text size
cursor_blinktrue, falsetrueCommand Palette › Preferences: Toggle Cursor Blinking
vim_modetrue, falsefalseEditor, Vim mode. See Vim mode.
prompt_for_parameterstrue, falsetrueEditor, Query parameters. See Run a query with parameters.

formatter

How Format SQL writes; see Format SQL.

[formatter]
keyword_case = "upper"
indent = "4_spaces"
commas = "trailing"
KeyValuesStarts asSettings
keyword_caseupper, lower, preserve (as typed)upperEditor, Format: keywords
indent2_spaces, 4_spaces, tab4_spacesEditor, Format: indentation
commastrailing, leadingtrailingEditor, Format: commas

keybindings

Your own keyboard shortcuts: a command's ID and its keys. File only. See Change keyboard shortcuts.

[keybindings]
"view.toggle_sidebar" = "primary+shift+y"
"query.explain" = ""

An empty text takes a command's shortcut away. Removing a line gives the command its usual shortcut back.

keymap

Whose shortcuts Querlyn starts from. Your own [keybindings] win over it. See Use the shortcuts of another tool.

[keymap]
preset = "datagrip"
KeyValuesStarts asSettings
presetquerlyn, datagrip, vscode, tableplusquerlynKeyboard, Keymap

safety

[safety]
high_risk = "destructive_and_unknown"
medium_risk = "destructive"
low_risk = "never"
lock_warnings = true
small_table_megabytes = 100
KeyValuesStarts asSettings
high_risknever, destructive, destructive_and_unknowndestructive_and_unknownSafety, Ask before running statements, High risk (Production)
medium_riskThe samedestructiveThe same, Medium risk (Testing, Staging)
low_riskThe sameneverThe same, Low risk (Local, Development)
lock_warningstrue, falsetrueSafety, Warn about lock hazards
small_table_megabytes0 to 1048576; 0 means no table is small100Safety, Small table

The first three say when Querlyn asks before running a statement on connections of high, medium and low risk; see Confirm risky statements. The last two belong to Migration lock warnings.

Each choice of the first three is a command too:

Risk levelDestructive or unrecognizedDestructiveNever
High riskCommand Palette › Preferences: Confirmations (High Risk): Ask Before Destructive or Unrecognized StatementsCommand Palette › Preferences: Confirmations (High Risk): Ask Before Destructive StatementsCommand Palette › Preferences: Confirmations (High Risk): Never Ask
Medium riskCommand Palette › Preferences: Confirmations (Medium Risk): Ask Before Destructive or Unrecognized StatementsCommand Palette › Preferences: Confirmations (Medium Risk): Ask Before Destructive StatementsCommand Palette › Preferences: Confirmations (Medium Risk): Never Ask
Low riskCommand Palette › Preferences: Confirmations (Low Risk): Ask Before Destructive or Unrecognized StatementsCommand Palette › Preferences: Confirmations (Low Risk): Ask Before Destructive StatementsCommand Palette › Preferences: Confirmations (Low Risk): Never Ask

Confirm with Touch ID

Whether the questions Querlyn asks before a change on connections of each risk level take Touch ID (or your Mac's password) instead of a click. Each is true or false and starts as false; a level left out is off. See Confirm with Touch ID.

[safety.device_authentication]
high_risk = true
medium_risk = false
low_risk = false

In Settings: Safety, Confirm with Touch ID. Each switch is a command too: Command Palette › Preferences: Confirmations (High Risk): Confirm with Touch ID, Command Palette › Preferences: Confirmations (Medium Risk): Confirm with Touch ID, Command Palette › Preferences: Confirmations (Low Risk): Confirm with Touch ID.

Sample column values

Whether completion may read a sample of a column's values (its most common values, a JSON column's keys) on connections of each risk level. Each is true or false; high_risk starts as false, the others as true, and a level left out keeps its start. See Values of a column.

[safety.sample_values]
high_risk = true
medium_risk = true
low_risk = true

In Settings: Safety, Sample column values for completion. Each switch is a command too: Command Palette › Preferences: Completion (High Risk): Sample Column Values, Command Palette › Preferences: Completion (Medium Risk): Sample Column Values, Command Palette › Preferences: Completion (Low Risk): Sample Column Values.

The three safety times

Each of these has one value for each risk level, in seconds. 0 means off, and the longest is 86400, a day. See Lock waits and timeouts.

[safety.open_transaction_reminder]
high_risk = 120
medium_risk = 300
low_risk = 900

[safety.lock_timeout]
high_risk = 10
medium_risk = 30
low_risk = 0

[safety.statement_timeout]
high_risk = 0
medium_risk = 0
low_risk = 0
  • [safety.open_transaction_reminder]: how long a transaction may stay open with nothing running before its tab says so. In Settings: Safety, Open-transaction reminder.
  • [safety.lock_timeout]: the longest a statement in a query tab waits for another session's lock. In Settings: Safety, Lock timeout.
  • [safety.statement_timeout]: the longest a statement in a query tab runs. In Settings: Safety, Statement timeout.

The example shows the starting values. The Settings tab steps through fixed values; the file takes any number of seconds.

The steps of the Settings tab are commands too:

TimeOne step longerOne step shorter
Open-transaction reminder, high riskCommand Palette › Preferences: Open-Transaction Reminder (High Risk): LaterCommand Palette › Preferences: Open-Transaction Reminder (High Risk): Sooner or Off
Open-transaction reminder, medium riskCommand Palette › Preferences: Open-Transaction Reminder (Medium Risk): LaterCommand Palette › Preferences: Open-Transaction Reminder (Medium Risk): Sooner or Off
Open-transaction reminder, low riskCommand Palette › Preferences: Open-Transaction Reminder (Low Risk): LaterCommand Palette › Preferences: Open-Transaction Reminder (Low Risk): Sooner or Off
Lock timeout, high riskCommand Palette › Preferences: Lock Timeout (High Risk): LongerCommand Palette › Preferences: Lock Timeout (High Risk): Shorter or Off
Lock timeout, medium riskCommand Palette › Preferences: Lock Timeout (Medium Risk): LongerCommand Palette › Preferences: Lock Timeout (Medium Risk): Shorter or Off
Lock timeout, low riskCommand Palette › Preferences: Lock Timeout (Low Risk): LongerCommand Palette › Preferences: Lock Timeout (Low Risk): Shorter or Off
Statement timeout, high riskCommand Palette › Preferences: Statement Timeout (High Risk): LongerCommand Palette › Preferences: Statement Timeout (High Risk): Shorter or Off
Statement timeout, medium riskCommand Palette › Preferences: Statement Timeout (Medium Risk): LongerCommand Palette › Preferences: Statement Timeout (Medium Risk): Shorter or Off
Statement timeout, low riskCommand Palette › Preferences: Statement Timeout (Low Risk): LongerCommand Palette › Preferences: Statement Timeout (Low Risk): Shorter or Off

ssh

[ssh]
allow_rsa = false
KeyValuesStarts asSettings
allow_rsatrue, falsefalseSSH, Allow RSA keys. See Reach a database through SSH.

console

[console]
max_entries = 2000
KeyValuesStarts asSettings
max_entries100 to 200002000File only

How many statements the statement console keeps for each connection. They are kept in memory, never in a file.

tools

Where the programs are that Querlyn starts for you. Not set at the start: Querlyn then looks in the usual places. All of them are under Tools in Settings.

[tools]
mysql_folder = "/opt/homebrew/opt/mysql-client/bin"
kubectl_path = "/usr/local/bin/kubectl"
KeyThe program
postgresql_folderThe folder with pg_dump and pg_restore
mysql_folderThe folder with mysqldump and mysql
mariadb_folderThe folder with mariadb-dump and mariadb
kubectl_pathkubectl, or the folder that holds it
aws_pathThe AWS CLI
session_manager_plugin_pathThe AWS Session Manager plugin
op_pathThe 1Password command-line program
lpass_pathThe LastPass command-line program
bw_pathThe Bitwarden command-line program
mongosh_pathmongosh, MongoDB's shell, for script mode
python_pathThe Python whose ipykernel runs notebooks' Python cells

See Back up and restore a database, Kubernetes and SSM tunnels, Use a password manager, Run a MongoDB script in mongosh and Python cells.

sync

[sync]
preview_enabled = false
KeyValuesStarts asSettings
preview_enabledtrue, falsefalseSync, the switch that turns the sync preview on, and with it teams

While this is off, Querlyn shows no sync commands and never contacts the sync service. See Sync your computers.

privacy

[privacy]
screen_share = true
KeyValuesStarts asSettings
screen_sharetrue, falsefalseFile only: the Screen Share button in the status bar turns it on and off

Whether screen-share mode is on. Querlyn writes the line only while it is on, and keeps it on this computer: it is not synced.

scratch

[scratch]
keep_tables = true
copy_limit_mb = 1024
KeyValuesStarts asSettings
keep_tablestrue, falsefalseFile only: Command Palette › Preferences: Keep Scratch Tables Between Sessions turns it on and off
copy_limit_mb16 to 655361024File only

Whether the scratch keeps its tables in a file in Querlyn's data folder between sessions (true), or in memory until Querlyn quits; it takes effect the next time the scratch connects. And how many megabytes of values one copy into the scratch may hold, which is also the largest file it opens. Querlyn writes each line only when it differs from where it starts, and keeps both on this computer: they are not synced.

notebooks

[notebooks]
rows_per_result = 1000
megabytes_per_result = 1
megabytes_per_notebook = 16
KeyValuesStarts asSettings
rows_per_result1 to 1000001000File only
megabytes_per_result1 to 161File only
megabytes_per_notebook1 to 4816File only

How much of each result a new notebook saves in its file: the first rows of each result, at most so many megabytes each and so many for all of them together. A notebook keeps its own bound in its file, and Notebook › Notebook Settings… changes it for one notebook. Querlyn writes each line only when it differs from where it starts, and keeps them on this computer: they are not synced.

results

[results]
column_profile = true
map_tiles = true
KeyValuesStarts asSettings
column_profiletrue, falsefalseFile only: View › Toggle Column Profiles turns it on and off
map_tilestrue, falsefalseMaps, Show OpenStreetMap tiles behind maps; also Command Palette › Results: Toggle Map Tiles from OpenStreetMap

Whether the profile strip shows under the result grid's column headers, and whether maps draw OpenStreetMap's tiles behind their shapes (which sends the area you look at to tile.openstreetmap.org). Querlyn writes each line only while it is on, and keeps both on this computer: they are not synced.

updates

[updates]
check_automatically = true
channel = "stable"
KeyValuesStarts asSettings
check_automaticallytrue, falsetrueUpdates, Check automatically
channelstable, betastableUpdates, Channel
skipped_versionA version, such as "1.2.0"Not setFile only

With check_automatically on, Querlyn asks for a newer release when it starts and about once a day. skipped_version is the release you chose to skip: Querlyn does not offer that one by itself, and offers the next one as usual. Remove the line to be offered it again. See Update Querlyn.

export

The choices you last made in the export dialog, so that it opens as you left it. Querlyn writes these; there is rarely a reason to edit them. See Export results to a file.

[export]
format = "json"
escape_formulas = true
KeyValuesStarts as
formatcsv, tsv, json, jsonl, sql, xlsxcsv
headertrue, falsetrue
csv_delimiterOne characterA comma
csv_quote_alltrue, falsefalse
line_endinglf, crlfYour system's
bomtrue, falsefalse
null_textHow NULL is written in CSV and TSV filesEmpty
escape_formulastrue, falsefalse
json_stringstrue, falsefalse
sql_rows_per_insert1 to 100000100

What Querlyn keeps for itself

These record what Querlyn has already shown you, or what you did with the mouse. There is no reason to edit them, and deleting one only makes Querlyn show something once more.

KeyWhat it remembers
[layout] sidebar_widthThe sidebar's width after you dragged it, 200 to 640
[layout] diagram_outline_width, compare_tree_width, help_contents_width, plan_details_width, teams_list_width, history_snapshots_width, migration_details_widthThe width you dragged a side panel to: the ER diagram's outline, schema compare's list of objects, help's contents, a plan's details, the Teams tab's list, schema history's list of snapshots, the Migrations tab's detail
[layout] diagram_outline_hidden, compare_tree_hidden, help_contents_hidden, teams_list_hidden, history_snapshots_hidden, migration_details_hiddenThat you collapsed that panel
[help] openedThat you opened help once
[help] welcome_shownThat the welcome page was shown
[help] last_seen_versionThe version that last ran here, so that Querlyn can tell you once what is new
[hints] input_source_shortcut_dismissedThat you dismissed the hint about the completion shortcut on macOS
[hints] value_sampling_hint_shownThat the completion list told you once that values are not sampled on high-risk connections
[account] license_notice_dismissedWhen you last dismissed each kind of license notice
[account] server_urlThe address of the Querlyn account service. Not set at the start; leave it so.

Which settings sync

With sync on, these follow you to your other computers: density, ui_font_size, the editor's font_size, cursor_blink and vim_mode, everything under [formatter], and high_risk, medium_risk and low_risk under [safety], and the preset under [keymap]. The theme (theme, light_theme and dark_theme) and your keyboard shortcuts sync when their kinds are turned on.

Everything else stays on this computer.

Help for Querlyn 0.1.0. All help topics