Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ris-work: add download facility to download the textbox contents as an SQL snippet #31

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ris-work
Copy link
Contributor

@ris-work ris-work commented Feb 9, 2025

Ris-work: add download contents of the editor as an SQL snippet
It would have been easier if I could download the snippet as a file for later reference. Please evaluate whether it would be useful for the others too. Some queries, even if they don't use a real database, can use this feature (for example, I just write WITH A AS (VALUES (...), (...)) SELECT (...) FROM A for the ease of reproducibility).

It creates a download with a text file with the set DB name, the ISO time (ISO 8601, but with underscores instead of colons as they are more filesystem friendly, especially on Windows NT, and shell-friendly on Unix(-like) too), and a .sql suffix (extension). It was tested on Mozilla Firefox (R), Microsoft (R) Edge on Microsoft Windows (R) NT 10.

Thank you.

Sincerely,
Rishikeshan Sulochana/Lavakumar

ris-work and others added 3 commits January 19, 2025 15:42
sqlime-editor: prevent spelling and grammar checks, especially the annoying one on MS Edge default configuration which can cause double blue lines to appear underneath for 'wrong grammar'.
Spellcheck should have been boolean false, not string false; strings usually automatically get cast to "true".
@ris-work
Copy link
Contributor Author

BTW the last commit also adds the whole schema to the dump (1ca25d0). I am not sure if it is appropriate for everyone, but I shared the modification which I find useful for myself for using it as a scratchpad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant