Live data from Hacker News

Harlequin: SQL IDE for Your Terminal

github.com

71–80 of 89 posts

Re: Harlequin: SQL IDE for Your Terminal

#71
post #7

Question: do people love TUI, because they love being in a terminal? Or ... is this a movement against application bloat, which has become all to common these days? EDIT: why the downvotes?

1. I occasionally have to browse databases through SSH. 2. The CLI / TUI apps take less memory. 3. They also don't lag and lag is something I am absolutely sick of. 4. Easy to build habits in terms of blind keyboard pressing (very much like cashiers on the older DOS keyboard-only software in retail shops; you just know where everything is and are times more productive).

Re: Harlequin: SQL IDE for Your Terminal

#72

Every time I notice something is a Python codebase I feel a letdown as it means it will likely break some other Python project from someone else I have on my dev machine which I may not have touched in a while but which I will find got silently broken when I most need it Especially if it's a nice TUI app like this looks EDIT: Guys, in my experience, virtual environments do not fix this problem in all cases . At least…

every project you have should be in a virtual environment. it is not hard. https://docs.python.org/3.12/library/venv.html python -m venv ~/my-venvs/ source ~/my-venvs/name/bin/activate pip install but stuff like this would usually get installed globally, and your projects would instead have a venv. personally my favorite tool is pyenv, which allows you to have many versions of python on your machine as well as many v…

> every project you have should be in a virtual environment. it is not hard.

If it's not hard then why is it not being done by default?

I am not a Python dev and I don't want to be, but when I have to install something via `pip` there's always pain.

"You could learn it", yeah yeah, Python is so special everyone has to learn it even if they don't ever work with it. How about learning from something modern like Go and Rust? `go install github.com/user/tool@latest`, boom, done. `cargo install the_tool`, boom, done.

Re: Harlequin: SQL IDE for Your Terminal

#74
post #59

There are also other interesting collections of TUI terminal tools like harlequin here as well: https://terminaltrove.com/ harlequin is also featured there as a tool of the week on that site.

Huh, just found this db tui as well via that site: https://terminaltrove.com/gobang/

Re: Harlequin: SQL IDE for Your Terminal

#76

Earlier quoted context omitted.

alright, I will bookmark this and try this next time I want to play with a python project. OK, how would I include all of these under the same PATH regime? So for example say I want to run this project from a commandline location elsewhere... I'd only be able to have one venv activated at the same time in the same session, right? I guess that's part of my issue with this. I want to be able to access 10 different Pyth…

To access 10 different commands at the same time, that is tricky but definitely doable. First thing that comes to mind, you can use aliases. To keep it simple, lets use 3 examples instead of 10: harlequin (this project), pgcli ( https://www.pgcli.com/ ) and httpx ( https://www.python-httpx.org/ ) Setup a main home for all your venvs: cd ~ mkdir venvs Go into this dir, and create your venvs and install the packages cd…

Sounds like something https://www.gnu.org/software/stow/ could help with.

Re: Harlequin: SQL IDE for Your Terminal

#77
post #7

Question: do people love TUI, because they love being in a terminal? Or ... is this a movement against application bloat, which has become all to common these days? EDIT: why the downvotes?

For those who prefer GUI apps, dbnet is an option to serve via HTTP. Run it remote side, access in the browser.

https://github.com/dbnet-io/dbnet

Re: Harlequin: SQL IDE for Your Terminal

#78
post #68

Earlier quoted context omitted.

Is there a way to order the list of tables in the left hand pane?

Not yet. What order would you like to see?

Alphabetically would be all I'm after, as I make use of psql's partition feature. Keeping all the partitions in a logical order would help me out.

Re: Harlequin: SQL IDE for Your Terminal

#79
post #59

There are also other interesting collections of TUI terminal tools like harlequin here as well: https://terminaltrove.com/ harlequin is also featured there as a tool of the week on that site.

I would like to put in a vote for k9s, which is also on the list at Terminal Trove. [0] It's the most convenient tool I've ever found for Kubernetes management. Based on that experience I'll definitely be checking out Harlequin.

[0] https://k9scli.io/

Post reply on HN