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
| Key | Values | Starts as | Settings |
|---|---|---|---|
theme | dark, light, system | system | Appearance, Theme |
light_theme | A 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_theme | A 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 own | querlyn-dark (written only once you choose another) | Appearance, Dark theme |
density | compact, comfortable | compact | Appearance, Density |
ui_font_size | 11 to 16 | 13 | Appearance, Interface text size |
editor
[editor]
font_family = "JetBrains Mono"
font_size = 13
cursor_blink = true
vim_mode = false
prompt_for_parameters = true
| Key | Values | Starts as | Settings |
|---|---|---|---|
font_family | The name of a font installed on this computer | Not set: your system's fixed-width font | File only. Editor, Font shows the font in use. |
font_size | 9 to 32 | 13 | Editor, Editor text size |
cursor_blink | true, false | true | |
vim_mode | true, false | false | Editor, Vim mode. See Vim mode. |
prompt_for_parameters | true, false | true | Editor, 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"
| Key | Values | Starts as | Settings |
|---|---|---|---|
keyword_case | upper, lower, preserve (as typed) | upper | Editor, Format: keywords |
indent | 2_spaces, 4_spaces, tab | 4_spaces | Editor, Format: indentation |
commas | trailing, leading | trailing | Editor, 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"
| Key | Values | Starts as | Settings |
|---|---|---|---|
preset | querlyn, datagrip, vscode, tableplus | querlyn | Keyboard, Keymap |
safety
[safety]
high_risk = "destructive_and_unknown"
medium_risk = "destructive"
low_risk = "never"
lock_warnings = true
small_table_megabytes = 100
| Key | Values | Starts as | Settings |
|---|---|---|---|
high_risk | never, destructive, destructive_and_unknown | destructive_and_unknown | Safety, Ask before running statements, High risk (Production) |
medium_risk | The same | destructive | The same, Medium risk (Testing, Staging) |
low_risk | The same | never | The same, Low risk (Local, Development) |
lock_warnings | true, false | true | Safety, Warn about lock hazards |
small_table_megabytes | 0 to 1048576; 0 means no table is small | 100 | Safety, 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 level | Destructive or unrecognized | Destructive | Never |
|---|---|---|---|
| High risk | |||
| Medium risk | |||
| Low risk |
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: , , .
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: , , .
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:
| Time | One step longer | One step shorter |
|---|---|---|
| Open-transaction reminder, high risk | ||
| Open-transaction reminder, medium risk | ||
| Open-transaction reminder, low risk | ||
| Lock timeout, high risk | ||
| Lock timeout, medium risk | ||
| Lock timeout, low risk | ||
| Statement timeout, high risk | ||
| Statement timeout, medium risk | ||
| Statement timeout, low risk |
ssh
[ssh]
allow_rsa = false
| Key | Values | Starts as | Settings |
|---|---|---|---|
allow_rsa | true, false | false | SSH, Allow RSA keys. See Reach a database through SSH. |
console
[console]
max_entries = 2000
| Key | Values | Starts as | Settings |
|---|---|---|---|
max_entries | 100 to 20000 | 2000 | File 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"
| Key | The program |
|---|---|
postgresql_folder | The folder with pg_dump and pg_restore |
mysql_folder | The folder with mysqldump and mysql |
mariadb_folder | The folder with mariadb-dump and mariadb |
kubectl_path | kubectl, or the folder that holds it |
aws_path | The AWS CLI |
session_manager_plugin_path | The AWS Session Manager plugin |
op_path | The 1Password command-line program |
lpass_path | The LastPass command-line program |
bw_path | The Bitwarden command-line program |
mongosh_path | mongosh, MongoDB's shell, for script mode |
python_path | The 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
| Key | Values | Starts as | Settings |
|---|---|---|---|
preview_enabled | true, false | false | Sync, 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
| Key | Values | Starts as | Settings |
|---|---|---|---|
screen_share | true, false | false | File 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
| Key | Values | Starts as | Settings |
|---|---|---|---|
keep_tables | true, false | false | File only: turns it on and off |
copy_limit_mb | 16 to 65536 | 1024 | File 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
| Key | Values | Starts as | Settings |
|---|---|---|---|
rows_per_result | 1 to 100000 | 1000 | File only |
megabytes_per_result | 1 to 16 | 1 | File only |
megabytes_per_notebook | 1 to 48 | 16 | File 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 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
| Key | Values | Starts as | Settings |
|---|---|---|---|
column_profile | true, false | false | File only: turns it on and off |
map_tiles | true, false | false | Maps, Show OpenStreetMap tiles behind maps; also |
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"
| Key | Values | Starts as | Settings |
|---|---|---|---|
check_automatically | true, false | true | Updates, Check automatically |
channel | stable, beta | stable | Updates, Channel |
skipped_version | A version, such as "1.2.0" | Not set | File 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
| Key | Values | Starts as |
|---|---|---|
format | csv, tsv, json, jsonl, sql, xlsx | csv |
header | true, false | true |
csv_delimiter | One character | A comma |
csv_quote_all | true, false | false |
line_ending | lf, crlf | Your system's |
bom | true, false | false |
null_text | How NULL is written in CSV and TSV files | Empty |
escape_formulas | true, false | false |
json_strings | true, false | false |
sql_rows_per_insert | 1 to 100000 | 100 |
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.
| Key | What it remembers |
|---|---|
[layout] sidebar_width | The 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_width | The 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_hidden | That you collapsed that panel |
[help] opened | That you opened help once |
[help] welcome_shown | That the welcome page was shown |
[help] last_seen_version | The version that last ran here, so that Querlyn can tell you once what is new |
[hints] input_source_shortcut_dismissed | That you dismissed the hint about the completion shortcut on macOS |
[hints] value_sampling_hint_shown | That the completion list told you once that values are not sampled on high-risk connections |
[account] license_notice_dismissed | When you last dismissed each kind of license notice |
[account] server_url | The 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