Should the query history be persistent or is it per-session? #631
Replies: 3 comments 2 replies
-
We try to persist it across sessions for the same connection. I actually just changed that way Harlequin computes a hash key from the connection so if you upgraded recently that could have wiped out your history. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick response. Hmm, always getting “Harlequin could not load the Query History.”/“Your Query History has not yet been loaded. Please wait a moment and try again.” after starting Harlequin. And as for the same-connection aspect: For example, my “~/.duckdbrc” attaches a local MariaDB database, so this appears automatically under “Databases” when I launch Harlequin. Yet the history is always empty initially, also after USEing that DB. Is that to be expected? |
Beta Was this translation helpful? Give feedback.
-
No, it doesn't. So to avoid any misunderstandings, I run Harlequin without any options/local config, so it uses its DuckDB backend. My |
Beta Was this translation helpful? Give feedback.
-
Query history seems to be per-session, but this is not clarified anywhere in the documentation. If it being per-session and not persistent is intentional and not a bug, I think it would be beneficial if it could optionally be persisted across sessions, say, via a local query history file (à la
.bash_history
) enabled by a config option.Beta Was this translation helpful? Give feedback.
All reactions